/*
 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
 * From ASN.1 module "X2AP-Containers"
 * 	found in "Spec/e2_and_x2-combined-and-minimized.asn1"
 * 	`asn1c -pdu=auto -fincludes-quoted -fcompound-names -fno-include-deps -gen-PER -no-gen-OER -no-gen-example`
 */

#include "ProtocolIE-Field.h"

static const long asn_VAL_4_id_RICaction_ToBeSetup_Item = 60011;
static const long asn_VAL_4_ignore = 1;
static const long asn_VAL_4_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICaction_ToBeSetup_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_4_id_RICaction_ToBeSetup_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_4_ignore },
	{ "&Value", aioc__type, &asn_DEF_RICaction_ToBeSetup_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_4_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICaction_ToBeSetup_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_RICaction_ToBeSetup_ItemIEs_1_rows }
};
static const long asn_VAL_9_id_RICaction_Admitted_Item = 60013;
static const long asn_VAL_9_ignore = 1;
static const long asn_VAL_9_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICaction_Admitted_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_9_id_RICaction_Admitted_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_9_ignore },
	{ "&Value", aioc__type, &asn_DEF_RICaction_Admitted_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_9_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICaction_Admitted_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_RICaction_Admitted_ItemIEs_1_rows }
};
static const long asn_VAL_10_id_RICaction_NotAdmitted_Item = 60015;
static const long asn_VAL_10_ignore = 1;
static const long asn_VAL_10_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICaction_NotAdmitted_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_10_id_RICaction_NotAdmitted_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_10_ignore },
	{ "&Value", aioc__type, &asn_DEF_RICaction_NotAdmitted_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_10_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICaction_NotAdmitted_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_RICaction_NotAdmitted_ItemIEs_1_rows }
};
static const long asn_VAL_48_id_RANfunction_Item = 60001;
static const long asn_VAL_48_ignore = 1;
static const long asn_VAL_48_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RANfunction_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_48_id_RANfunction_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_48_ignore },
	{ "&Value", aioc__type, &asn_DEF_RANfunction_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_48_mandatory }
};
static const asn_ioc_set_t asn_IOS_RANfunction_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_RANfunction_ItemIEs_1_rows }
};
static const long asn_VAL_49_id_RANfunctionID_Item = 60004;
static const long asn_VAL_49_ignore = 1;
static const long asn_VAL_49_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RANfunctionID_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_49_id_RANfunctionID_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_49_ignore },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_49_mandatory }
};
static const asn_ioc_set_t asn_IOS_RANfunctionID_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_RANfunctionID_ItemIEs_1_rows }
};
static const long asn_VAL_52_id_RANfunctionIEcause_Item = 60005;
static const long asn_VAL_52_ignore = 1;
static const long asn_VAL_52_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RANfunctionIDcause_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_52_id_RANfunctionIEcause_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_52_ignore },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionIDcause_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_52_mandatory }
};
static const asn_ioc_set_t asn_IOS_RANfunctionIDcause_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_RANfunctionIDcause_ItemIEs_1_rows }
};
static const long asn_VAL_79_id_CellInformation_Item = 7;
static const long asn_VAL_79_ignore = 1;
static const long asn_VAL_79_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_CellInformation_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_79_id_CellInformation_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_79_ignore },
	{ "&Value", aioc__type, &asn_DEF_CellInformation_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_79_mandatory }
};
static const asn_ioc_set_t asn_IOS_CellInformation_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_CellInformation_ItemIEs_1_rows }
};
static const long asn_VAL_99_id_CellToReport_Item = 31;
static const long asn_VAL_99_ignore = 1;
static const long asn_VAL_99_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_CellToReport_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_99_id_CellToReport_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_99_ignore },
	{ "&Value", aioc__type, &asn_DEF_CellToReport_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_99_mandatory }
};
static const asn_ioc_set_t asn_IOS_CellToReport_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_CellToReport_ItemIEs_1_rows }
};
static const long asn_VAL_104_id_MeasurementInitiationResult_Item = 66;
static const long asn_VAL_104_ignore = 1;
static const long asn_VAL_104_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_MeasurementInitiationResult_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_104_id_MeasurementInitiationResult_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_104_ignore },
	{ "&Value", aioc__type, &asn_DEF_MeasurementInitiationResult_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_104_mandatory }
};
static const asn_ioc_set_t asn_IOS_MeasurementInitiationResult_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_MeasurementInitiationResult_ItemIEs_1_rows }
};
static const long asn_VAL_105_id_MeasurementFailureCause_Item = 67;
static const long asn_VAL_105_ignore = 1;
static const long asn_VAL_105_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_MeasurementFailureCause_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_105_id_MeasurementFailureCause_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_105_ignore },
	{ "&Value", aioc__type, &asn_DEF_MeasurementFailureCause_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_105_mandatory }
};
static const asn_ioc_set_t asn_IOS_MeasurementFailureCause_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_MeasurementFailureCause_ItemIEs_1_rows }
};
static const long asn_VAL_111_id_CompleteFailureCauseInformation_Item = 69;
static const long asn_VAL_111_ignore = 1;
static const long asn_VAL_111_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_CompleteFailureCauseInformation_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_111_id_CompleteFailureCauseInformation_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_111_ignore },
	{ "&Value", aioc__type, &asn_DEF_CompleteFailureCauseInformation_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_111_mandatory }
};
static const asn_ioc_set_t asn_IOS_CompleteFailureCauseInformation_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_CompleteFailureCauseInformation_ItemIEs_1_rows }
};
static const long asn_VAL_115_id_CellMeasurementResult_Item = 33;
static const long asn_VAL_115_ignore = 1;
static const long asn_VAL_115_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_CellMeasurementResult_ItemIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_115_id_CellMeasurementResult_Item },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_115_ignore },
	{ "&Value", aioc__type, &asn_DEF_CellMeasurementResult_Item },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_115_mandatory }
};
static const asn_ioc_set_t asn_IOS_CellMeasurementResult_ItemIEs_1[] = {
	{ 1, 4, asn_IOS_CellMeasurementResult_ItemIEs_1_rows }
};
static const long asn_VAL_1_id_RICrequestID = 60030;
static const long asn_VAL_1_reject = 0;
static const long asn_VAL_1_mandatory = 2;
static const long asn_VAL_2_id_RANfunctionID = 60003;
static const long asn_VAL_2_reject = 0;
static const long asn_VAL_2_mandatory = 2;
static const long asn_VAL_3_id_RICsubscription = 60033;
static const long asn_VAL_3_reject = 0;
static const long asn_VAL_3_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICsubscriptionRequest_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_1_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_1_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_1_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_2_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_2_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_2_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_3_id_RICsubscription },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_3_reject },
	{ "&Value", aioc__type, &asn_DEF_RICsubscription },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_3_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICsubscriptionRequest_IEs_1[] = {
	{ 3, 4, asn_IOS_RICsubscriptionRequest_IEs_1_rows }
};
static const long asn_VAL_5_id_RICrequestID = 60030;
static const long asn_VAL_5_reject = 0;
static const long asn_VAL_5_mandatory = 2;
static const long asn_VAL_6_id_RANfunctionID = 60003;
static const long asn_VAL_6_reject = 0;
static const long asn_VAL_6_mandatory = 2;
static const long asn_VAL_7_id_RICactions_Admitted = 60012;
static const long asn_VAL_7_reject = 0;
static const long asn_VAL_7_mandatory = 2;
static const long asn_VAL_8_id_RICactions_NotAdmitted = 60014;
static const long asn_VAL_8_reject = 0;
static const long asn_VAL_8_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICsubscriptionResponse_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_5_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_5_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_5_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_6_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_6_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_6_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_7_id_RICactions_Admitted },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_7_reject },
	{ "&Value", aioc__type, &asn_DEF_RICaction_Admitted_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_7_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_8_id_RICactions_NotAdmitted },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_8_reject },
	{ "&Value", aioc__type, &asn_DEF_RICaction_NotAdmitted_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_8_optional }
};
static const asn_ioc_set_t asn_IOS_RICsubscriptionResponse_IEs_1[] = {
	{ 4, 4, asn_IOS_RICsubscriptionResponse_IEs_1_rows }
};
static const long asn_VAL_11_id_RICrequestID = 60030;
static const long asn_VAL_11_reject = 0;
static const long asn_VAL_11_mandatory = 2;
static const long asn_VAL_12_id_RANfunctionID = 60003;
static const long asn_VAL_12_reject = 0;
static const long asn_VAL_12_mandatory = 2;
static const long asn_VAL_13_id_RICactions_NotAdmitted = 60014;
static const long asn_VAL_13_reject = 0;
static const long asn_VAL_13_mandatory = 2;
static const long asn_VAL_14_id_CriticalityDiagnostics = 17;
static const long asn_VAL_14_ignore = 1;
static const long asn_VAL_14_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICsubscriptionFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_11_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_11_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_11_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_12_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_12_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_12_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_13_id_RICactions_NotAdmitted },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_13_reject },
	{ "&Value", aioc__type, &asn_DEF_RICaction_NotAdmitted_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_13_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_14_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_14_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_14_optional }
};
static const asn_ioc_set_t asn_IOS_RICsubscriptionFailure_IEs_1[] = {
	{ 4, 4, asn_IOS_RICsubscriptionFailure_IEs_1_rows }
};
static const long asn_VAL_15_id_RICrequestID = 60030;
static const long asn_VAL_15_reject = 0;
static const long asn_VAL_15_mandatory = 2;
static const long asn_VAL_16_id_RANfunctionID = 60003;
static const long asn_VAL_16_reject = 0;
static const long asn_VAL_16_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICsubscriptionDeleteRequest_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_15_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_15_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_15_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_16_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_16_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_16_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICsubscriptionDeleteRequest_IEs_1[] = {
	{ 2, 4, asn_IOS_RICsubscriptionDeleteRequest_IEs_1_rows }
};
static const long asn_VAL_17_id_RICrequestID = 60030;
static const long asn_VAL_17_reject = 0;
static const long asn_VAL_17_mandatory = 2;
static const long asn_VAL_18_id_RANfunctionID = 60003;
static const long asn_VAL_18_reject = 0;
static const long asn_VAL_18_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICsubscriptionDeleteResponse_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_17_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_17_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_17_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_18_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_18_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_18_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICsubscriptionDeleteResponse_IEs_1[] = {
	{ 2, 4, asn_IOS_RICsubscriptionDeleteResponse_IEs_1_rows }
};
static const long asn_VAL_19_id_RICrequestID = 60030;
static const long asn_VAL_19_reject = 0;
static const long asn_VAL_19_mandatory = 2;
static const long asn_VAL_20_id_RANfunctionID = 60003;
static const long asn_VAL_20_reject = 0;
static const long asn_VAL_20_mandatory = 2;
static const long asn_VAL_21_id_RICcause = 60020;
static const long asn_VAL_21_ignore = 1;
static const long asn_VAL_21_mandatory = 2;
static const long asn_VAL_22_id_CriticalityDiagnostics = 17;
static const long asn_VAL_22_ignore = 1;
static const long asn_VAL_22_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICsubscriptionDeleteFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_19_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_19_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_19_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_20_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_20_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_20_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_21_id_RICcause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_21_ignore },
	{ "&Value", aioc__type, &asn_DEF_RICcause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_21_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_22_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_22_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_22_optional }
};
static const asn_ioc_set_t asn_IOS_RICsubscriptionDeleteFailure_IEs_1[] = {
	{ 4, 4, asn_IOS_RICsubscriptionDeleteFailure_IEs_1_rows }
};
static const long asn_VAL_23_id_RICrequestID = 60030;
static const long asn_VAL_23_reject = 0;
static const long asn_VAL_23_mandatory = 2;
static const long asn_VAL_24_id_RANfunctionID = 60003;
static const long asn_VAL_24_reject = 0;
static const long asn_VAL_24_mandatory = 2;
static const long asn_VAL_25_id_RICactionID = 60017;
static const long asn_VAL_25_reject = 0;
static const long asn_VAL_25_mandatory = 2;
static const long asn_VAL_26_id_RICindicationSN = 60028;
static const long asn_VAL_26_reject = 0;
static const long asn_VAL_26_mandatory = 2;
static const long asn_VAL_27_id_RICindicationType = 60029;
static const long asn_VAL_27_reject = 0;
static const long asn_VAL_27_mandatory = 2;
static const long asn_VAL_28_id_RICindicationHeader = 60026;
static const long asn_VAL_28_reject = 0;
static const long asn_VAL_28_mandatory = 2;
static const long asn_VAL_29_id_RICindicationMessage = 60027;
static const long asn_VAL_29_reject = 0;
static const long asn_VAL_29_mandatory = 2;
static const long asn_VAL_30_id_RICcallProcessID = 60019;
static const long asn_VAL_30_reject = 0;
static const long asn_VAL_30_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICindication_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_23_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_23_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_23_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_24_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_24_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_24_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_25_id_RICactionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_25_reject },
	{ "&Value", aioc__type, &asn_DEF_RICactionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_25_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_26_id_RICindicationSN },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_26_reject },
	{ "&Value", aioc__type, &asn_DEF_RICindicationSN },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_26_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_27_id_RICindicationType },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_27_reject },
	{ "&Value", aioc__type, &asn_DEF_RICindicationType },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_27_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_28_id_RICindicationHeader },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_28_reject },
	{ "&Value", aioc__type, &asn_DEF_RICindicationHeader },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_28_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_29_id_RICindicationMessage },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_29_reject },
	{ "&Value", aioc__type, &asn_DEF_RICindicationMessage },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_29_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_30_id_RICcallProcessID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_30_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcallProcessID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_30_optional }
};
static const asn_ioc_set_t asn_IOS_RICindication_IEs_1[] = {
	{ 8, 4, asn_IOS_RICindication_IEs_1_rows }
};
static const long asn_VAL_31_id_RICrequestID = 60030;
static const long asn_VAL_31_reject = 0;
static const long asn_VAL_31_mandatory = 2;
static const long asn_VAL_32_id_RANfunctionID = 60003;
static const long asn_VAL_32_reject = 0;
static const long asn_VAL_32_mandatory = 2;
static const long asn_VAL_33_id_RICcallProcessID = 60019;
static const long asn_VAL_33_reject = 0;
static const long asn_VAL_33_optional = 0;
static const long asn_VAL_34_id_RICcontrolHeader = 60022;
static const long asn_VAL_34_reject = 0;
static const long asn_VAL_34_mandatory = 2;
static const long asn_VAL_35_id_RICcontrolMessage = 60023;
static const long asn_VAL_35_reject = 0;
static const long asn_VAL_35_mandatory = 2;
static const long asn_VAL_36_id_RICcontrolAckRequest = 60021;
static const long asn_VAL_36_reject = 0;
static const long asn_VAL_36_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICcontrolRequest_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_31_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_31_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_31_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_32_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_32_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_32_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_33_id_RICcallProcessID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_33_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcallProcessID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_33_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_34_id_RICcontrolHeader },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_34_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcontrolHeader },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_34_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_35_id_RICcontrolMessage },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_35_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcontrolMessage },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_35_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_36_id_RICcontrolAckRequest },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_36_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcontrolAckRequest },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_36_optional }
};
static const asn_ioc_set_t asn_IOS_RICcontrolRequest_IEs_1[] = {
	{ 6, 4, asn_IOS_RICcontrolRequest_IEs_1_rows }
};
static const long asn_VAL_37_id_RICrequestID = 60030;
static const long asn_VAL_37_reject = 0;
static const long asn_VAL_37_mandatory = 2;
static const long asn_VAL_38_id_RANfunctionID = 60003;
static const long asn_VAL_38_reject = 0;
static const long asn_VAL_38_mandatory = 2;
static const long asn_VAL_39_id_RICcallProcessID = 60019;
static const long asn_VAL_39_reject = 0;
static const long asn_VAL_39_optional = 0;
static const long asn_VAL_40_id_RICcontrolStatus = 60024;
static const long asn_VAL_40_reject = 0;
static const long asn_VAL_40_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICcontrolAcknowledge_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_37_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_37_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_37_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_38_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_38_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_38_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_39_id_RICcallProcessID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_39_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcallProcessID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_39_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_40_id_RICcontrolStatus },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_40_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcontrolStatus },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_40_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICcontrolAcknowledge_IEs_1[] = {
	{ 4, 4, asn_IOS_RICcontrolAcknowledge_IEs_1_rows }
};
static const long asn_VAL_41_id_RICrequestID = 60030;
static const long asn_VAL_41_reject = 0;
static const long asn_VAL_41_mandatory = 2;
static const long asn_VAL_42_id_RANfunctionID = 60003;
static const long asn_VAL_42_reject = 0;
static const long asn_VAL_42_mandatory = 2;
static const long asn_VAL_43_id_RICcallProcessID = 60019;
static const long asn_VAL_43_reject = 0;
static const long asn_VAL_43_optional = 0;
static const long asn_VAL_44_id_RICcause = 60020;
static const long asn_VAL_44_ignore = 1;
static const long asn_VAL_44_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_RICcontrolFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_41_id_RICrequestID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_41_reject },
	{ "&Value", aioc__type, &asn_DEF_RICrequestID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_41_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_42_id_RANfunctionID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_42_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_42_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_43_id_RICcallProcessID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_43_reject },
	{ "&Value", aioc__type, &asn_DEF_RICcallProcessID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_43_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_44_id_RICcause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_44_ignore },
	{ "&Value", aioc__type, &asn_DEF_RICcause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_44_mandatory }
};
static const asn_ioc_set_t asn_IOS_RICcontrolFailure_IEs_1[] = {
	{ 4, 4, asn_IOS_RICcontrolFailure_IEs_1_rows }
};
static const long asn_VAL_45_id_RANfunctionsAdded = 60007;
static const long asn_VAL_45_reject = 0;
static const long asn_VAL_45_optional = 0;
static const long asn_VAL_46_id_RANfunctionsModified = 60009;
static const long asn_VAL_46_reject = 0;
static const long asn_VAL_46_optional = 0;
static const long asn_VAL_47_id_RANfunctionsDeleted = 60008;
static const long asn_VAL_47_reject = 0;
static const long asn_VAL_47_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICserviceUpdate_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_45_id_RANfunctionsAdded },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_45_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctions_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_45_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_46_id_RANfunctionsModified },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_46_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctions_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_46_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_47_id_RANfunctionsDeleted },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_47_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionsID_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_47_optional }
};
static const asn_ioc_set_t asn_IOS_RICserviceUpdate_IEs_1[] = {
	{ 3, 4, asn_IOS_RICserviceUpdate_IEs_1_rows }
};
static const long asn_VAL_50_id_RANfunctionsAccepted = 60006;
static const long asn_VAL_50_reject = 0;
static const long asn_VAL_50_optional = 0;
static const long asn_VAL_51_id_RANfunctionsRejected = 60010;
static const long asn_VAL_51_reject = 0;
static const long asn_VAL_51_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICserviceUpdateAcknowledge_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_50_id_RANfunctionsAccepted },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_50_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionsID_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_50_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_51_id_RANfunctionsRejected },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_51_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionsIDcause_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_51_optional }
};
static const asn_ioc_set_t asn_IOS_RICserviceUpdateAcknowledge_IEs_1[] = {
	{ 2, 4, asn_IOS_RICserviceUpdateAcknowledge_IEs_1_rows }
};
static const long asn_VAL_53_id_RANfunctionsRejected = 60010;
static const long asn_VAL_53_ignore = 1;
static const long asn_VAL_53_optional = 0;
static const long asn_VAL_54_id_TimeToWait = 22;
static const long asn_VAL_54_ignore = 1;
static const long asn_VAL_54_optional = 0;
static const long asn_VAL_55_id_CriticalityDiagnostics = 17;
static const long asn_VAL_55_ignore = 1;
static const long asn_VAL_55_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICserviceUpdateFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_53_id_RANfunctionsRejected },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_53_ignore },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionsIDcause_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_53_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_54_id_TimeToWait },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_54_ignore },
	{ "&Value", aioc__type, &asn_DEF_TimeToWait },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_54_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_55_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_55_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_55_optional }
};
static const asn_ioc_set_t asn_IOS_RICserviceUpdateFailure_IEs_1[] = {
	{ 3, 4, asn_IOS_RICserviceUpdateFailure_IEs_1_rows }
};
static const long asn_VAL_56_id_RANfunctionsAccepted = 60006;
static const long asn_VAL_56_reject = 0;
static const long asn_VAL_56_optional = 0;
static const asn_ioc_cell_t asn_IOS_RICserviceQuery_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_56_id_RANfunctionsAccepted },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_56_reject },
	{ "&Value", aioc__type, &asn_DEF_RANfunctionsID_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_56_optional }
};
static const asn_ioc_set_t asn_IOS_RICserviceQuery_IEs_1[] = {
	{ 1, 4, asn_IOS_RICserviceQuery_IEs_1_rows }
};
static const long asn_VAL_57_id_Old_eNB_UE_X2AP_ID = 10;
static const long asn_VAL_57_ignore = 1;
static const long asn_VAL_57_optional = 0;
static const long asn_VAL_58_id_New_eNB_UE_X2AP_ID = 9;
static const long asn_VAL_58_ignore = 1;
static const long asn_VAL_58_optional = 0;
static const long asn_VAL_59_id_Cause = 5;
static const long asn_VAL_59_ignore = 1;
static const long asn_VAL_59_optional = 0;
static const long asn_VAL_60_id_CriticalityDiagnostics = 17;
static const long asn_VAL_60_ignore = 1;
static const long asn_VAL_60_optional = 0;
static const long asn_VAL_61_id_Old_eNB_UE_X2AP_ID_Extension = 156;
static const long asn_VAL_61_ignore = 1;
static const long asn_VAL_61_optional = 0;
static const long asn_VAL_62_id_New_eNB_UE_X2AP_ID_Extension = 155;
static const long asn_VAL_62_ignore = 1;
static const long asn_VAL_62_optional = 0;
static const long asn_VAL_63_id_Old_SgNB_UE_X2AP_ID = 264;
static const long asn_VAL_63_ignore = 1;
static const long asn_VAL_63_optional = 0;
static const asn_ioc_cell_t asn_IOS_ErrorIndication_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_57_id_Old_eNB_UE_X2AP_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_57_ignore },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_57_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_58_id_New_eNB_UE_X2AP_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_58_ignore },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_58_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_59_id_Cause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_59_ignore },
	{ "&Value", aioc__type, &asn_DEF_Cause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_59_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_60_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_60_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_60_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_61_id_Old_eNB_UE_X2AP_ID_Extension },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_61_ignore },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID_Extension },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_61_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_62_id_New_eNB_UE_X2AP_ID_Extension },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_62_ignore },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID_Extension },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_62_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_63_id_Old_SgNB_UE_X2AP_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_63_ignore },
	{ "&Value", aioc__type, &asn_DEF_SgNB_UE_X2AP_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_63_optional }
};
static const asn_ioc_set_t asn_IOS_ErrorIndication_IEs_1[] = {
	{ 7, 4, asn_IOS_ErrorIndication_IEs_1_rows }
};
static const long asn_VAL_64_id_Cause = 5;
static const long asn_VAL_64_ignore = 1;
static const long asn_VAL_64_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ResetRequest_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_64_id_Cause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_64_ignore },
	{ "&Value", aioc__type, &asn_DEF_Cause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_64_mandatory }
};
static const asn_ioc_set_t asn_IOS_ResetRequest_IEs_1[] = {
	{ 1, 4, asn_IOS_ResetRequest_IEs_1_rows }
};
static const long asn_VAL_65_id_CriticalityDiagnostics = 17;
static const long asn_VAL_65_ignore = 1;
static const long asn_VAL_65_optional = 0;
static const asn_ioc_cell_t asn_IOS_ResetResponse_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_65_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_65_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_65_optional }
};
static const asn_ioc_set_t asn_IOS_ResetResponse_IEs_1[] = {
	{ 1, 4, asn_IOS_ResetResponse_IEs_1_rows }
};
static const long asn_VAL_66_id_GlobalENB_ID = 21;
static const long asn_VAL_66_reject = 0;
static const long asn_VAL_66_mandatory = 2;
static const long asn_VAL_67_id_ServedCells = 20;
static const long asn_VAL_67_reject = 0;
static const long asn_VAL_67_mandatory = 2;
static const long asn_VAL_68_id_GUGroupIDList = 24;
static const long asn_VAL_68_reject = 0;
static const long asn_VAL_68_optional = 0;
static const long asn_VAL_69_id_LHN_ID = 159;
static const long asn_VAL_69_ignore = 1;
static const long asn_VAL_69_optional = 0;
static const asn_ioc_cell_t asn_IOS_X2SetupRequest_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_66_id_GlobalENB_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_66_reject },
	{ "&Value", aioc__type, &asn_DEF_GlobalENB_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_66_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_67_id_ServedCells },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_67_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedCells },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_67_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_68_id_GUGroupIDList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_68_reject },
	{ "&Value", aioc__type, &asn_DEF_GUGroupIDList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_68_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_69_id_LHN_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_69_ignore },
	{ "&Value", aioc__type, &asn_DEF_LHN_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_69_optional }
};
static const asn_ioc_set_t asn_IOS_X2SetupRequest_IEs_1[] = {
	{ 4, 4, asn_IOS_X2SetupRequest_IEs_1_rows }
};
static const long asn_VAL_70_id_GlobalENB_ID = 21;
static const long asn_VAL_70_reject = 0;
static const long asn_VAL_70_mandatory = 2;
static const long asn_VAL_71_id_ServedCells = 20;
static const long asn_VAL_71_reject = 0;
static const long asn_VAL_71_mandatory = 2;
static const long asn_VAL_72_id_GUGroupIDList = 24;
static const long asn_VAL_72_reject = 0;
static const long asn_VAL_72_optional = 0;
static const long asn_VAL_73_id_CriticalityDiagnostics = 17;
static const long asn_VAL_73_ignore = 1;
static const long asn_VAL_73_optional = 0;
static const long asn_VAL_74_id_LHN_ID = 159;
static const long asn_VAL_74_ignore = 1;
static const long asn_VAL_74_optional = 0;
static const asn_ioc_cell_t asn_IOS_X2SetupResponse_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_70_id_GlobalENB_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_70_reject },
	{ "&Value", aioc__type, &asn_DEF_GlobalENB_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_70_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_71_id_ServedCells },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_71_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedCells },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_71_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_72_id_GUGroupIDList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_72_reject },
	{ "&Value", aioc__type, &asn_DEF_GUGroupIDList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_72_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_73_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_73_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_73_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_74_id_LHN_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_74_ignore },
	{ "&Value", aioc__type, &asn_DEF_LHN_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_74_optional }
};
static const asn_ioc_set_t asn_IOS_X2SetupResponse_IEs_1[] = {
	{ 5, 4, asn_IOS_X2SetupResponse_IEs_1_rows }
};
static const long asn_VAL_75_id_Cause = 5;
static const long asn_VAL_75_ignore = 1;
static const long asn_VAL_75_mandatory = 2;
static const long asn_VAL_76_id_TimeToWait = 22;
static const long asn_VAL_76_ignore = 1;
static const long asn_VAL_76_optional = 0;
static const long asn_VAL_77_id_CriticalityDiagnostics = 17;
static const long asn_VAL_77_ignore = 1;
static const long asn_VAL_77_optional = 0;
static const asn_ioc_cell_t asn_IOS_X2SetupFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_75_id_Cause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_75_ignore },
	{ "&Value", aioc__type, &asn_DEF_Cause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_75_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_76_id_TimeToWait },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_76_ignore },
	{ "&Value", aioc__type, &asn_DEF_TimeToWait },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_76_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_77_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_77_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_77_optional }
};
static const asn_ioc_set_t asn_IOS_X2SetupFailure_IEs_1[] = {
	{ 3, 4, asn_IOS_X2SetupFailure_IEs_1_rows }
};
static const long asn_VAL_78_id_CellInformation = 6;
static const long asn_VAL_78_ignore = 1;
static const long asn_VAL_78_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_LoadInformation_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_78_id_CellInformation },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_78_ignore },
	{ "&Value", aioc__type, &asn_DEF_CellInformation_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_78_mandatory }
};
static const asn_ioc_set_t asn_IOS_LoadInformation_IEs_1[] = {
	{ 1, 4, asn_IOS_LoadInformation_IEs_1_rows }
};
static const long asn_VAL_80_id_ServedCellsToAdd = 25;
static const long asn_VAL_80_reject = 0;
static const long asn_VAL_80_optional = 0;
static const long asn_VAL_81_id_ServedCellsToModify = 26;
static const long asn_VAL_81_reject = 0;
static const long asn_VAL_81_optional = 0;
static const long asn_VAL_82_id_ServedCellsToDelete = 27;
static const long asn_VAL_82_reject = 0;
static const long asn_VAL_82_optional = 0;
static const long asn_VAL_83_id_GUGroupIDToAddList = 34;
static const long asn_VAL_83_reject = 0;
static const long asn_VAL_83_optional = 0;
static const long asn_VAL_84_id_GUGroupIDToDeleteList = 35;
static const long asn_VAL_84_reject = 0;
static const long asn_VAL_84_optional = 0;
static const long asn_VAL_85_id_CoverageModificationList = 143;
static const long asn_VAL_85_reject = 0;
static const long asn_VAL_85_optional = 0;
static const asn_ioc_cell_t asn_IOS_ENBConfigurationUpdate_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_80_id_ServedCellsToAdd },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_80_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedCells },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_80_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_81_id_ServedCellsToModify },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_81_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedCellsToModify },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_81_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_82_id_ServedCellsToDelete },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_82_reject },
	{ "&Value", aioc__type, &asn_DEF_Old_ECGIs },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_82_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_83_id_GUGroupIDToAddList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_83_reject },
	{ "&Value", aioc__type, &asn_DEF_GUGroupIDList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_83_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_84_id_GUGroupIDToDeleteList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_84_reject },
	{ "&Value", aioc__type, &asn_DEF_GUGroupIDList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_84_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_85_id_CoverageModificationList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_85_reject },
	{ "&Value", aioc__type, &asn_DEF_CoverageModificationList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_85_optional }
};
static const asn_ioc_set_t asn_IOS_ENBConfigurationUpdate_IEs_1[] = {
	{ 6, 4, asn_IOS_ENBConfigurationUpdate_IEs_1_rows }
};
static const long asn_VAL_86_id_CriticalityDiagnostics = 17;
static const long asn_VAL_86_ignore = 1;
static const long asn_VAL_86_optional = 0;
static const asn_ioc_cell_t asn_IOS_ENBConfigurationUpdateAcknowledge_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_86_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_86_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_86_optional }
};
static const asn_ioc_set_t asn_IOS_ENBConfigurationUpdateAcknowledge_IEs_1[] = {
	{ 1, 4, asn_IOS_ENBConfigurationUpdateAcknowledge_IEs_1_rows }
};
static const long asn_VAL_87_id_Cause = 5;
static const long asn_VAL_87_ignore = 1;
static const long asn_VAL_87_mandatory = 2;
static const long asn_VAL_88_id_TimeToWait = 22;
static const long asn_VAL_88_ignore = 1;
static const long asn_VAL_88_optional = 0;
static const long asn_VAL_89_id_CriticalityDiagnostics = 17;
static const long asn_VAL_89_ignore = 1;
static const long asn_VAL_89_optional = 0;
static const asn_ioc_cell_t asn_IOS_ENBConfigurationUpdateFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_87_id_Cause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_87_ignore },
	{ "&Value", aioc__type, &asn_DEF_Cause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_87_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_88_id_TimeToWait },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_88_ignore },
	{ "&Value", aioc__type, &asn_DEF_TimeToWait },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_88_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_89_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_89_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_89_optional }
};
static const asn_ioc_set_t asn_IOS_ENBConfigurationUpdateFailure_IEs_1[] = {
	{ 3, 4, asn_IOS_ENBConfigurationUpdateFailure_IEs_1_rows }
};
static const long asn_VAL_90_id_ENB1_Measurement_ID = 39;
static const long asn_VAL_90_reject = 0;
static const long asn_VAL_90_mandatory = 2;
static const long asn_VAL_91_id_ENB2_Measurement_ID = 40;
static const long asn_VAL_91_ignore = 1;
static const long asn_VAL_91_conditional = 1;
static const long asn_VAL_92_id_Registration_Request = 28;
static const long asn_VAL_92_reject = 0;
static const long asn_VAL_92_mandatory = 2;
static const long asn_VAL_93_id_ReportCharacteristics = 38;
static const long asn_VAL_93_reject = 0;
static const long asn_VAL_93_optional = 0;
static const long asn_VAL_94_id_CellToReport = 29;
static const long asn_VAL_94_ignore = 1;
static const long asn_VAL_94_mandatory = 2;
static const long asn_VAL_95_id_ReportingPeriodicity = 30;
static const long asn_VAL_95_ignore = 1;
static const long asn_VAL_95_optional = 0;
static const long asn_VAL_96_id_PartialSuccessIndicator = 64;
static const long asn_VAL_96_ignore = 1;
static const long asn_VAL_96_optional = 0;
static const long asn_VAL_97_id_ReportingPeriodicityRSRPMR = 109;
static const long asn_VAL_97_ignore = 1;
static const long asn_VAL_97_optional = 0;
static const long asn_VAL_98_id_ReportingPeriodicityCSIR = 145;
static const long asn_VAL_98_ignore = 1;
static const long asn_VAL_98_optional = 0;
static const asn_ioc_cell_t asn_IOS_ResourceStatusRequest_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_90_id_ENB1_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_90_reject },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_90_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_91_id_ENB2_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_91_ignore },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_91_conditional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_92_id_Registration_Request },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_92_reject },
	{ "&Value", aioc__type, &asn_DEF_Registration_Request },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_92_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_93_id_ReportCharacteristics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_93_reject },
	{ "&Value", aioc__type, &asn_DEF_ReportCharacteristics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_93_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_94_id_CellToReport },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_94_ignore },
	{ "&Value", aioc__type, &asn_DEF_CellToReport_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_94_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_95_id_ReportingPeriodicity },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_95_ignore },
	{ "&Value", aioc__type, &asn_DEF_ReportingPeriodicity },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_95_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_96_id_PartialSuccessIndicator },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_96_ignore },
	{ "&Value", aioc__type, &asn_DEF_PartialSuccessIndicator },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_96_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_97_id_ReportingPeriodicityRSRPMR },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_97_ignore },
	{ "&Value", aioc__type, &asn_DEF_ReportingPeriodicityRSRPMR },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_97_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_98_id_ReportingPeriodicityCSIR },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_98_ignore },
	{ "&Value", aioc__type, &asn_DEF_ReportingPeriodicityCSIR },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_98_optional }
};
static const asn_ioc_set_t asn_IOS_ResourceStatusRequest_IEs_1[] = {
	{ 9, 4, asn_IOS_ResourceStatusRequest_IEs_1_rows }
};
static const long asn_VAL_100_id_ENB1_Measurement_ID = 39;
static const long asn_VAL_100_reject = 0;
static const long asn_VAL_100_mandatory = 2;
static const long asn_VAL_101_id_ENB2_Measurement_ID = 40;
static const long asn_VAL_101_reject = 0;
static const long asn_VAL_101_mandatory = 2;
static const long asn_VAL_102_id_CriticalityDiagnostics = 17;
static const long asn_VAL_102_ignore = 1;
static const long asn_VAL_102_optional = 0;
static const long asn_VAL_103_id_MeasurementInitiationResult_List = 65;
static const long asn_VAL_103_ignore = 1;
static const long asn_VAL_103_optional = 0;
static const asn_ioc_cell_t asn_IOS_ResourceStatusResponse_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_100_id_ENB1_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_100_reject },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_100_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_101_id_ENB2_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_101_reject },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_101_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_102_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_102_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_102_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_103_id_MeasurementInitiationResult_List },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_103_ignore },
	{ "&Value", aioc__type, &asn_DEF_MeasurementInitiationResult_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_103_optional }
};
static const asn_ioc_set_t asn_IOS_ResourceStatusResponse_IEs_1[] = {
	{ 4, 4, asn_IOS_ResourceStatusResponse_IEs_1_rows }
};
static const long asn_VAL_106_id_ENB1_Measurement_ID = 39;
static const long asn_VAL_106_reject = 0;
static const long asn_VAL_106_mandatory = 2;
static const long asn_VAL_107_id_ENB2_Measurement_ID = 40;
static const long asn_VAL_107_reject = 0;
static const long asn_VAL_107_mandatory = 2;
static const long asn_VAL_108_id_Cause = 5;
static const long asn_VAL_108_ignore = 1;
static const long asn_VAL_108_mandatory = 2;
static const long asn_VAL_109_id_CriticalityDiagnostics = 17;
static const long asn_VAL_109_ignore = 1;
static const long asn_VAL_109_optional = 0;
static const long asn_VAL_110_id_CompleteFailureCauseInformation_List = 68;
static const long asn_VAL_110_ignore = 1;
static const long asn_VAL_110_optional = 0;
static const asn_ioc_cell_t asn_IOS_ResourceStatusFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_106_id_ENB1_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_106_reject },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_106_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_107_id_ENB2_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_107_reject },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_107_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_108_id_Cause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_108_ignore },
	{ "&Value", aioc__type, &asn_DEF_Cause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_108_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_109_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_109_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_109_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_110_id_CompleteFailureCauseInformation_List },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_110_ignore },
	{ "&Value", aioc__type, &asn_DEF_CompleteFailureCauseInformation_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_110_optional }
};
static const asn_ioc_set_t asn_IOS_ResourceStatusFailure_IEs_1[] = {
	{ 5, 4, asn_IOS_ResourceStatusFailure_IEs_1_rows }
};
static const long asn_VAL_112_id_ENB1_Measurement_ID = 39;
static const long asn_VAL_112_reject = 0;
static const long asn_VAL_112_mandatory = 2;
static const long asn_VAL_113_id_ENB2_Measurement_ID = 40;
static const long asn_VAL_113_reject = 0;
static const long asn_VAL_113_mandatory = 2;
static const long asn_VAL_114_id_CellMeasurementResult = 32;
static const long asn_VAL_114_ignore = 1;
static const long asn_VAL_114_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ResourceStatusUpdate_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_112_id_ENB1_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_112_reject },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_112_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_113_id_ENB2_Measurement_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_113_reject },
	{ "&Value", aioc__type, &asn_DEF_Measurement_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_113_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_114_id_CellMeasurementResult },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_114_ignore },
	{ "&Value", aioc__type, &asn_DEF_CellMeasurementResult_List },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_114_mandatory }
};
static const asn_ioc_set_t asn_IOS_ResourceStatusUpdate_IEs_1[] = {
	{ 3, 4, asn_IOS_ResourceStatusUpdate_IEs_1_rows }
};
static const long asn_VAL_116_id_MeNB_UE_X2AP_ID = 111;
static const long asn_VAL_116_reject = 0;
static const long asn_VAL_116_mandatory = 2;
static const long asn_VAL_117_id_SeNB_UE_X2AP_ID = 112;
static const long asn_VAL_117_reject = 0;
static const long asn_VAL_117_mandatory = 2;
static const long asn_VAL_118_id_ResponseInformationSeNBReconfComp = 123;
static const long asn_VAL_118_ignore = 1;
static const long asn_VAL_118_mandatory = 2;
static const long asn_VAL_119_id_MeNB_UE_X2AP_ID_Extension = 157;
static const long asn_VAL_119_reject = 0;
static const long asn_VAL_119_optional = 0;
static const long asn_VAL_120_id_SeNB_UE_X2AP_ID_Extension = 158;
static const long asn_VAL_120_reject = 0;
static const long asn_VAL_120_optional = 0;
static const asn_ioc_cell_t asn_IOS_SeNBReconfigurationComplete_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_116_id_MeNB_UE_X2AP_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_116_reject },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_116_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_117_id_SeNB_UE_X2AP_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_117_reject },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_117_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_118_id_ResponseInformationSeNBReconfComp },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_118_ignore },
	{ "&Value", aioc__type, &asn_DEF_ResponseInformationSeNBReconfComp },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_118_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_119_id_MeNB_UE_X2AP_ID_Extension },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_119_reject },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID_Extension },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_119_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_120_id_SeNB_UE_X2AP_ID_Extension },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_120_reject },
	{ "&Value", aioc__type, &asn_DEF_UE_X2AP_ID_Extension },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_120_optional }
};
static const asn_ioc_set_t asn_IOS_SeNBReconfigurationComplete_IEs_1[] = {
	{ 5, 4, asn_IOS_SeNBReconfigurationComplete_IEs_1_rows }
};
static const long asn_VAL_121_id_InitiatingNodeType_EndcX2Setup = 244;
static const long asn_VAL_121_reject = 0;
static const long asn_VAL_121_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ENDCX2SetupRequest_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_121_id_InitiatingNodeType_EndcX2Setup },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_121_reject },
	{ "&Value", aioc__type, &asn_DEF_InitiatingNodeType_EndcX2Setup },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_121_mandatory }
};
static const asn_ioc_set_t asn_IOS_ENDCX2SetupRequest_IEs_1[] = {
	{ 1, 4, asn_IOS_ENDCX2SetupRequest_IEs_1_rows }
};
static const long asn_VAL_122_id_GlobalENB_ID = 21;
static const long asn_VAL_122_reject = 0;
static const long asn_VAL_122_mandatory = 2;
static const long asn_VAL_123_id_ServedEUTRAcellsENDCX2ManagementList = 250;
static const long asn_VAL_123_reject = 0;
static const long asn_VAL_123_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ENB_ENDCX2SetupReqIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_122_id_GlobalENB_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_122_reject },
	{ "&Value", aioc__type, &asn_DEF_GlobalENB_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_122_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_123_id_ServedEUTRAcellsENDCX2ManagementList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_123_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedEUTRAcellsENDCX2ManagementList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_123_mandatory }
};
static const asn_ioc_set_t asn_IOS_ENB_ENDCX2SetupReqIEs_1[] = {
	{ 2, 4, asn_IOS_ENB_ENDCX2SetupReqIEs_1_rows }
};
static const long asn_VAL_124_id_Globalen_gNB_ID = 252;
static const long asn_VAL_124_reject = 0;
static const long asn_VAL_124_mandatory = 2;
static const long asn_VAL_125_id_ServedNRcellsENDCX2ManagementList = 253;
static const long asn_VAL_125_reject = 0;
static const long asn_VAL_125_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_En_gNB_ENDCX2SetupReqIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_124_id_Globalen_gNB_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_124_reject },
	{ "&Value", aioc__type, &asn_DEF_GlobalGNB_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_124_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_125_id_ServedNRcellsENDCX2ManagementList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_125_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedNRcellsENDCX2ManagementList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_125_mandatory }
};
static const asn_ioc_set_t asn_IOS_En_gNB_ENDCX2SetupReqIEs_1[] = {
	{ 2, 4, asn_IOS_En_gNB_ENDCX2SetupReqIEs_1_rows }
};
static const long asn_VAL_126_id_RespondingNodeType_EndcX2Setup = 246;
static const long asn_VAL_126_reject = 0;
static const long asn_VAL_126_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ENDCX2SetupResponse_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_126_id_RespondingNodeType_EndcX2Setup },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_126_reject },
	{ "&Value", aioc__type, &asn_DEF_RespondingNodeType_EndcX2Setup },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_126_mandatory }
};
static const asn_ioc_set_t asn_IOS_ENDCX2SetupResponse_IEs_1[] = {
	{ 1, 4, asn_IOS_ENDCX2SetupResponse_IEs_1_rows }
};
static const long asn_VAL_127_id_GlobalENB_ID = 21;
static const long asn_VAL_127_reject = 0;
static const long asn_VAL_127_mandatory = 2;
static const long asn_VAL_128_id_ServedEUTRAcellsENDCX2ManagementList = 250;
static const long asn_VAL_128_reject = 0;
static const long asn_VAL_128_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ENB_ENDCX2SetupReqAckIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_127_id_GlobalENB_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_127_reject },
	{ "&Value", aioc__type, &asn_DEF_GlobalENB_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_127_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_128_id_ServedEUTRAcellsENDCX2ManagementList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_128_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedEUTRAcellsENDCX2ManagementList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_128_mandatory }
};
static const asn_ioc_set_t asn_IOS_ENB_ENDCX2SetupReqAckIEs_1[] = {
	{ 2, 4, asn_IOS_ENB_ENDCX2SetupReqAckIEs_1_rows }
};
static const long asn_VAL_129_id_Globalen_gNB_ID = 252;
static const long asn_VAL_129_reject = 0;
static const long asn_VAL_129_mandatory = 2;
static const long asn_VAL_130_id_ServedNRcellsENDCX2ManagementList = 253;
static const long asn_VAL_130_reject = 0;
static const long asn_VAL_130_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_En_gNB_ENDCX2SetupReqAckIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_129_id_Globalen_gNB_ID },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_129_reject },
	{ "&Value", aioc__type, &asn_DEF_GlobalGNB_ID },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_129_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_130_id_ServedNRcellsENDCX2ManagementList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_130_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedNRcellsENDCX2ManagementList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_130_mandatory }
};
static const asn_ioc_set_t asn_IOS_En_gNB_ENDCX2SetupReqAckIEs_1[] = {
	{ 2, 4, asn_IOS_En_gNB_ENDCX2SetupReqAckIEs_1_rows }
};
static const long asn_VAL_131_id_Cause = 5;
static const long asn_VAL_131_ignore = 1;
static const long asn_VAL_131_mandatory = 2;
static const long asn_VAL_132_id_CriticalityDiagnostics = 17;
static const long asn_VAL_132_ignore = 1;
static const long asn_VAL_132_optional = 0;
static const long asn_VAL_133_id_TimeToWait = 22;
static const long asn_VAL_133_ignore = 1;
static const long asn_VAL_133_optional = 0;
static const asn_ioc_cell_t asn_IOS_ENDCX2SetupFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_131_id_Cause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_131_ignore },
	{ "&Value", aioc__type, &asn_DEF_Cause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_131_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_132_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_132_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_132_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_133_id_TimeToWait },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_133_ignore },
	{ "&Value", aioc__type, &asn_DEF_TimeToWait },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_133_optional }
};
static const asn_ioc_set_t asn_IOS_ENDCX2SetupFailure_IEs_1[] = {
	{ 3, 4, asn_IOS_ENDCX2SetupFailure_IEs_1_rows }
};
static const long asn_VAL_134_id_InitiatingNodeType_EndcConfigUpdate = 245;
static const long asn_VAL_134_reject = 0;
static const long asn_VAL_134_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ENDCConfigurationUpdate_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_134_id_InitiatingNodeType_EndcConfigUpdate },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_134_reject },
	{ "&Value", aioc__type, &asn_DEF_InitiatingNodeType_EndcConfigUpdate },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_134_mandatory }
};
static const asn_ioc_set_t asn_IOS_ENDCConfigurationUpdate_IEs_1[] = {
	{ 1, 4, asn_IOS_ENDCConfigurationUpdate_IEs_1_rows }
};
static const long asn_VAL_135_id_CellAssistanceInformation = 251;
static const long asn_VAL_135_reject = 0;
static const long asn_VAL_135_optional = 0;
static const long asn_VAL_136_id_ServedEUTRAcellsENDCX2ManagementList = 250;
static const long asn_VAL_136_reject = 0;
static const long asn_VAL_136_optional = 0;
static const long asn_VAL_137_id_ServedEUTRAcellsToModifyListENDCConfUpd = 259;
static const long asn_VAL_137_reject = 0;
static const long asn_VAL_137_optional = 0;
static const long asn_VAL_138_id_ServedEUTRAcellsToDeleteListENDCConfUpd = 260;
static const long asn_VAL_138_reject = 0;
static const long asn_VAL_138_optional = 0;
static const asn_ioc_cell_t asn_IOS_ENB_ENDCConfigUpdateIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_135_id_CellAssistanceInformation },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_135_reject },
	{ "&Value", aioc__type, &asn_DEF_CellAssistanceInformation },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_135_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_136_id_ServedEUTRAcellsENDCX2ManagementList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_136_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedEUTRAcellsENDCX2ManagementList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_136_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_137_id_ServedEUTRAcellsToModifyListENDCConfUpd },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_137_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedEUTRAcellsToModifyListENDCConfUpd },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_137_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_138_id_ServedEUTRAcellsToDeleteListENDCConfUpd },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_138_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedEUTRAcellsToDeleteListENDCConfUpd },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_138_optional }
};
static const asn_ioc_set_t asn_IOS_ENB_ENDCConfigUpdateIEs_1[] = {
	{ 4, 4, asn_IOS_ENB_ENDCConfigUpdateIEs_1_rows }
};
static const long asn_VAL_139_id_ServedNRcellsENDCX2ManagementList = 253;
static const long asn_VAL_139_reject = 0;
static const long asn_VAL_139_optional = 0;
static const long asn_VAL_140_id_ServedNRcellsToModifyListENDCConfUpd = 261;
static const long asn_VAL_140_reject = 0;
static const long asn_VAL_140_optional = 0;
static const long asn_VAL_141_id_ServedNRcellsToDeleteListENDCConfUpd = 262;
static const long asn_VAL_141_reject = 0;
static const long asn_VAL_141_optional = 0;
static const asn_ioc_cell_t asn_IOS_En_gNB_ENDCConfigUpdateIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_139_id_ServedNRcellsENDCX2ManagementList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_139_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedNRcellsENDCX2ManagementList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_139_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_140_id_ServedNRcellsToModifyListENDCConfUpd },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_140_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedNRcellsToModifyENDCConfUpdList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_140_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_141_id_ServedNRcellsToDeleteListENDCConfUpd },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_141_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedNRcellsToDeleteENDCConfUpdList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_141_optional }
};
static const asn_ioc_set_t asn_IOS_En_gNB_ENDCConfigUpdateIEs_1[] = {
	{ 3, 4, asn_IOS_En_gNB_ENDCConfigUpdateIEs_1_rows }
};
static const long asn_VAL_142_id_RespondingNodeType_EndcConfigUpdate = 247;
static const long asn_VAL_142_reject = 0;
static const long asn_VAL_142_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_ENDCConfigurationUpdateAcknowledge_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_142_id_RespondingNodeType_EndcConfigUpdate },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_142_reject },
	{ "&Value", aioc__type, &asn_DEF_RespondingNodeType_EndcConfigUpdate },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_142_mandatory }
};
static const asn_ioc_set_t asn_IOS_ENDCConfigurationUpdateAcknowledge_IEs_1[] = {
	{ 1, 4, asn_IOS_ENDCConfigurationUpdateAcknowledge_IEs_1_rows }
};
static const long asn_VAL_143_id_ServedNRcellsENDCX2ManagementList = 253;
static const long asn_VAL_143_reject = 0;
static const long asn_VAL_143_optional = 0;
static const asn_ioc_cell_t asn_IOS_En_gNB_ENDCConfigUpdateAckIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_143_id_ServedNRcellsENDCX2ManagementList },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_143_reject },
	{ "&Value", aioc__type, &asn_DEF_ServedNRcellsENDCX2ManagementList },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_143_optional }
};
static const asn_ioc_set_t asn_IOS_En_gNB_ENDCConfigUpdateAckIEs_1[] = {
	{ 1, 4, asn_IOS_En_gNB_ENDCConfigUpdateAckIEs_1_rows }
};
static const long asn_VAL_144_id_Cause = 5;
static const long asn_VAL_144_ignore = 1;
static const long asn_VAL_144_mandatory = 2;
static const long asn_VAL_145_id_CriticalityDiagnostics = 17;
static const long asn_VAL_145_ignore = 1;
static const long asn_VAL_145_optional = 0;
static const long asn_VAL_146_id_TimeToWait = 22;
static const long asn_VAL_146_ignore = 1;
static const long asn_VAL_146_optional = 0;
static const asn_ioc_cell_t asn_IOS_ENDCConfigurationUpdateFailure_IEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_144_id_Cause },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_144_ignore },
	{ "&Value", aioc__type, &asn_DEF_Cause },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_144_mandatory },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_145_id_CriticalityDiagnostics },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_145_ignore },
	{ "&Value", aioc__type, &asn_DEF_CriticalityDiagnostics },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_145_optional },
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_146_id_TimeToWait },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_146_ignore },
	{ "&Value", aioc__type, &asn_DEF_TimeToWait },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_146_optional }
};
static const asn_ioc_set_t asn_IOS_ENDCConfigurationUpdateFailure_IEs_1[] = {
	{ 3, 4, asn_IOS_ENDCConfigurationUpdateFailure_IEs_1_rows }
};
static const long asn_VAL_147_id_GNBOverloadInformation = 310;
static const long asn_VAL_147_ignore = 1;
static const long asn_VAL_147_mandatory = 2;
static const asn_ioc_cell_t asn_IOS_GNBStatusIndicationIEs_1_rows[] = {
	{ "&id", aioc__value, &asn_DEF_ProtocolIE_ID, &asn_VAL_147_id_GNBOverloadInformation },
	{ "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_147_ignore },
	{ "&Value", aioc__type, &asn_DEF_GNBOverloadInformation },
	{ "&presence", aioc__value, &asn_DEF_Presence, &asn_VAL_147_mandatory }
};
static const asn_ioc_set_t asn_IOS_GNBStatusIndicationIEs_1[] = {
	{ 1, 4, asn_IOS_GNBStatusIndicationIEs_1_rows }
};
static int
memb_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICaction_ToBeSetup_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICaction_ToBeSetup_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICaction_ToBeSetup_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICaction_ToBeSetup_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICaction_ToBeSetup_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICaction_ToBeSetup_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICaction_Admitted_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICaction_Admitted_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICaction_Admitted_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICaction_Admitted_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICaction_Admitted_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICaction_Admitted_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_5(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICaction_NotAdmitted_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICaction_NotAdmitted_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICaction_NotAdmitted_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICaction_NotAdmitted_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICaction_NotAdmitted_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICaction_NotAdmitted_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_9(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RANfunction_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RANfunction_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RANfunction_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RANfunction_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RANfunction_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RANfunction_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RANfunctionID_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RANfunctionID_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RANfunctionID_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RANfunctionID_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RANfunctionID_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RANfunctionID_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_17(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RANfunctionIDcause_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RANfunctionIDcause_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RANfunctionIDcause_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RANfunctionIDcause_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RANfunctionIDcause_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RANfunctionIDcause_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_21(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_25(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_CellInformation_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CellInformation_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CellInformation_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_25(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_CellInformation_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CellInformation_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CellInformation_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_25(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_29(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_CellToReport_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CellToReport_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CellToReport_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_29(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_CellToReport_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CellToReport_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CellToReport_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_29(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_33(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_MeasurementInitiationResult_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_MeasurementInitiationResult_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct MeasurementInitiationResult_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_33(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_MeasurementInitiationResult_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_MeasurementInitiationResult_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct MeasurementInitiationResult_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_33(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_37(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_MeasurementFailureCause_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_MeasurementFailureCause_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct MeasurementFailureCause_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_37(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_MeasurementFailureCause_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_MeasurementFailureCause_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct MeasurementFailureCause_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_37(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_41(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_CompleteFailureCauseInformation_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CompleteFailureCauseInformation_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CompleteFailureCauseInformation_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_41(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_CompleteFailureCauseInformation_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CompleteFailureCauseInformation_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CompleteFailureCauseInformation_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_41(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_45(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_CellMeasurementResult_ItemIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CellMeasurementResult_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CellMeasurementResult_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_45(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_CellMeasurementResult_ItemIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_CellMeasurementResult_ItemIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct CellMeasurementResult_ItemIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_45(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_49(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICsubscriptionRequest_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_49(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICsubscriptionRequest_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_49(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_53(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICsubscriptionResponse_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_53(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICsubscriptionResponse_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_53(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_57(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICsubscriptionFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_57(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICsubscriptionFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_57(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_61(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICsubscriptionDeleteRequest_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionDeleteRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionDeleteRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_61(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICsubscriptionDeleteRequest_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionDeleteRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionDeleteRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_61(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_65(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICsubscriptionDeleteResponse_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionDeleteResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionDeleteResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_65(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICsubscriptionDeleteResponse_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionDeleteResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionDeleteResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_65(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_69(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICsubscriptionDeleteFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionDeleteFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionDeleteFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_69(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICsubscriptionDeleteFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICsubscriptionDeleteFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICsubscriptionDeleteFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_69(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_73(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICindication_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICindication_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICindication_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_73(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICindication_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICindication_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICindication_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_73(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_77(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICcontrolRequest_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICcontrolRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICcontrolRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_77(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICcontrolRequest_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICcontrolRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICcontrolRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_77(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_81(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICcontrolAcknowledge_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICcontrolAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICcontrolAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_81(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICcontrolAcknowledge_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICcontrolAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICcontrolAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_81(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_85(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICcontrolFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICcontrolFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICcontrolFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_85(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICcontrolFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICcontrolFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICcontrolFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_85(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_89(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICserviceUpdate_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_89(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICserviceUpdate_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_89(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_93(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICserviceUpdateAcknowledge_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceUpdateAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceUpdateAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_93(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICserviceUpdateAcknowledge_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceUpdateAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceUpdateAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_93(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_97(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICserviceUpdateFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceUpdateFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceUpdateFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_97(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICserviceUpdateFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceUpdateFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceUpdateFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_97(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_101(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_RICserviceQuery_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceQuery_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceQuery_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_101(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_RICserviceQuery_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_RICserviceQuery_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceQuery_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_101(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_105(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ErrorIndication_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ErrorIndication_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ErrorIndication_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_105(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ErrorIndication_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ErrorIndication_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ErrorIndication_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_105(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_109(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ResetRequest_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResetRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResetRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_109(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ResetRequest_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResetRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResetRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_109(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_113(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ResetResponse_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResetResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResetResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_113(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ResetResponse_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResetResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResetResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_113(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_117(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_X2SetupRequest_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_X2SetupRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct X2SetupRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_117(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_X2SetupRequest_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_X2SetupRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct X2SetupRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_117(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_121(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_X2SetupResponse_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_X2SetupResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct X2SetupResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_121(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_X2SetupResponse_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_X2SetupResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct X2SetupResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_121(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_125(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_X2SetupFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_X2SetupFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct X2SetupFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_125(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_X2SetupFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_X2SetupFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct X2SetupFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_125(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_129(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_LoadInformation_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_LoadInformation_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct LoadInformation_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_129(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_LoadInformation_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_LoadInformation_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct LoadInformation_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_129(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_133(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENBConfigurationUpdate_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENBConfigurationUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENBConfigurationUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_133(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENBConfigurationUpdate_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENBConfigurationUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENBConfigurationUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_133(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_137(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENBConfigurationUpdateAcknowledge_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENBConfigurationUpdateAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENBConfigurationUpdateAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_137(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENBConfigurationUpdateAcknowledge_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENBConfigurationUpdateAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENBConfigurationUpdateAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_137(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_141(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENBConfigurationUpdateFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENBConfigurationUpdateFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENBConfigurationUpdateFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_141(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENBConfigurationUpdateFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENBConfigurationUpdateFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENBConfigurationUpdateFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_141(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_145(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ResourceStatusRequest_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_145(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ResourceStatusRequest_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_145(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_149(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ResourceStatusResponse_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_149(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ResourceStatusResponse_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_149(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_153(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ResourceStatusFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_153(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ResourceStatusFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_153(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_157(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ResourceStatusUpdate_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_157(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ResourceStatusUpdate_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ResourceStatusUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ResourceStatusUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_157(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_161(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_SeNBReconfigurationComplete_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_SeNBReconfigurationComplete_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct SeNBReconfigurationComplete_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_161(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_SeNBReconfigurationComplete_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_SeNBReconfigurationComplete_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct SeNBReconfigurationComplete_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_161(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_165(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENDCX2SetupRequest_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCX2SetupRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCX2SetupRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_165(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENDCX2SetupRequest_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCX2SetupRequest_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCX2SetupRequest_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_165(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_169(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENB_ENDCX2SetupReqIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENB_ENDCX2SetupReqIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENB_ENDCX2SetupReqIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_169(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENB_ENDCX2SetupReqIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENB_ENDCX2SetupReqIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENB_ENDCX2SetupReqIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_169(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_173(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_En_gNB_ENDCX2SetupReqIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCX2SetupReqIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCX2SetupReqIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_173(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_En_gNB_ENDCX2SetupReqIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCX2SetupReqIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCX2SetupReqIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_173(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_177(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENDCX2SetupResponse_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCX2SetupResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCX2SetupResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_177(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENDCX2SetupResponse_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCX2SetupResponse_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCX2SetupResponse_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_177(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_181(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENB_ENDCX2SetupReqAckIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENB_ENDCX2SetupReqAckIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENB_ENDCX2SetupReqAckIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_181(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENB_ENDCX2SetupReqAckIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENB_ENDCX2SetupReqAckIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENB_ENDCX2SetupReqAckIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_181(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_185(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_En_gNB_ENDCX2SetupReqAckIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCX2SetupReqAckIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCX2SetupReqAckIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_185(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_En_gNB_ENDCX2SetupReqAckIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCX2SetupReqAckIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCX2SetupReqAckIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_185(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_189(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENDCX2SetupFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCX2SetupFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCX2SetupFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_189(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENDCX2SetupFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCX2SetupFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCX2SetupFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_189(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_193(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENDCConfigurationUpdate_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCConfigurationUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCConfigurationUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_193(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENDCConfigurationUpdate_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCConfigurationUpdate_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCConfigurationUpdate_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_193(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_197(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENB_ENDCConfigUpdateIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENB_ENDCConfigUpdateIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENB_ENDCConfigUpdateIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_197(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENB_ENDCConfigUpdateIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENB_ENDCConfigUpdateIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENB_ENDCConfigUpdateIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_197(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_201(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_En_gNB_ENDCConfigUpdateIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCConfigUpdateIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCConfigUpdateIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_201(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_En_gNB_ENDCConfigUpdateIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCConfigUpdateIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCConfigUpdateIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_201(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_205(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENDCConfigurationUpdateAcknowledge_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCConfigurationUpdateAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_205(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENDCConfigurationUpdateAcknowledge_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCConfigurationUpdateAcknowledge_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_205(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_209(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_criticality_constraint_209(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_value_constraint_209(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_213(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_En_gNB_ENDCConfigUpdateAckIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCConfigUpdateAckIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCConfigUpdateAckIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_213(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_En_gNB_ENDCConfigUpdateAckIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_En_gNB_ENDCConfigUpdateAckIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct En_gNB_ENDCConfigUpdateAckIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_213(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_217(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_ENDCConfigurationUpdateFailure_IEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCConfigurationUpdateFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCConfigurationUpdateFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_217(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_ENDCConfigurationUpdateFailure_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_ENDCConfigurationUpdateFailure_IEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct ENDCConfigurationUpdateFailure_IEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_217(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static int
memb_id_constraint_221(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	long value;
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	value = *(const long *)sptr;
	
	if((value >= 0 && value <= 65535)) {
		/* Constraint check succeeded */
		return 0;
	} else {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static asn_type_selector_result_t
select_GNBStatusIndicationIEs_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_GNBStatusIndicationIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 1; /* &criticality */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct GNBStatusIndicationIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_criticality_constraint_221(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_type_selector_result_t
select_GNBStatusIndicationIEs_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
	asn_type_selector_result_t result = {0, 0};
	const asn_ioc_set_t *itable = asn_IOS_GNBStatusIndicationIEs_1;
	size_t constraining_column = 0; /* &id */
	size_t for_column = 2; /* &Value */
	size_t row, presence_index = 0;
	const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct GNBStatusIndicationIEs, id));
	
	for(row=0; row < itable->rows_count; row++) {
	    const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
	    const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
	
	    if(type_cell->cell_kind == aioc__undefined)
	        continue;
	
	    presence_index++;
	    if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
	        result.type_descriptor = type_cell->type_descriptor;
	        result.presence_index = presence_index;
	        break;
	    }
	}
	
	return result;
}

static int
memb_value_constraint_221(const asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	
	if(!sptr) {
		ASN__CTFAIL(app_key, td, sptr,
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(1 /* No applicable constraints whatsoever */) {
		/* Nothing is here. See below */
	}
	
	return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}

static asn_per_constraints_t asn_PER_memb_id_constr_2 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_3 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_6 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_7 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_8 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_10 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_11 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_12 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_14 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_15 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_16 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_18 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_19 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_20 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_22 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_23 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_24 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_26 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_27 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_28 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_30 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_31 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_32 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_34 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_35 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_36 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_38 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_39 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_40 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_42 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_43 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_44 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_46 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_47 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_48 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_50 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_51 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_52 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_54 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_55 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_56 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_58 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_59 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_60 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_62 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_63 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_64 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_66 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_67 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_68 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_70 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_71 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_72 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_74 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_75 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_76 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_78 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_79 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_80 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_82 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_83 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_84 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_86 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_87 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_88 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_90 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_91 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_92 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_94 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_95 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_96 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_98 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_99 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_100 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_102 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_103 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_104 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_106 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_107 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_108 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_110 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_111 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_112 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_114 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_115 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_116 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_118 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_119 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_120 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_122 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_123 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_124 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_126 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_127 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_128 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_130 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_131 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_132 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_134 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_135 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_136 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_138 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_139 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_140 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_142 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_143 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_144 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_146 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_147 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_148 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_150 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_151 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_152 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_154 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_155 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_156 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_158 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_159 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_160 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_162 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_163 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_164 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_166 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_167 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_168 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_170 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_171 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_172 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_174 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_175 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_176 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_178 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_179 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_180 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_182 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_183 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_184 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_186 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_187 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_188 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_190 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_191 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_192 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_194 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_195 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_196 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_198 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_199 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_200 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_202 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_203 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_204 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_206 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_207 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_208 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_210 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_211 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_212 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_214 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_215 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_216 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_218 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_219 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_220 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_id_constr_222 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_criticality_constr_223 CC_NOTUSED = {
	{ APC_CONSTRAINED,	 2,  2,  0,  2 }	/* (0..2) */,
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_value_constr_224 CC_NOTUSED = {
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
static asn_TYPE_member_t asn_MBR_value_4[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_ToBeSetup_ItemIEs__value, choice.RICaction_ToBeSetup_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICaction_ToBeSetup_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICaction-ToBeSetup-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_4[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICaction-ToBeSetup-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
	sizeof(struct RICaction_ToBeSetup_ItemIEs__value),
	offsetof(struct RICaction_ToBeSetup_ItemIEs__value, _asn_ctx),
	offsetof(struct RICaction_ToBeSetup_ItemIEs__value, present),
	sizeof(((struct RICaction_ToBeSetup_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_4,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_4 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_4,
	1,	/* Elements count */
	&asn_SPC_value_specs_4	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICaction_ToBeSetup_ItemIEs_1[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_ToBeSetup_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_2,  memb_id_constraint_1 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_ToBeSetup_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICaction_ToBeSetup_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_3,  memb_criticality_constraint_1 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICaction_ToBeSetup_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_4,
		select_RICaction_ToBeSetup_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_4,  memb_value_constraint_1 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICaction_ToBeSetup_ItemIEs_tags_1[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICaction_ToBeSetup_ItemIEs_tag2el_1[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICaction_ToBeSetup_ItemIEs_specs_1 = {
	sizeof(struct RICaction_ToBeSetup_ItemIEs),
	offsetof(struct RICaction_ToBeSetup_ItemIEs, _asn_ctx),
	asn_MAP_RICaction_ToBeSetup_ItemIEs_tag2el_1,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICaction_ToBeSetup_ItemIEs = {
	"RICaction-ToBeSetup-ItemIEs",
	"RICaction-ToBeSetup-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICaction_ToBeSetup_ItemIEs_tags_1,
	sizeof(asn_DEF_RICaction_ToBeSetup_ItemIEs_tags_1)
		/sizeof(asn_DEF_RICaction_ToBeSetup_ItemIEs_tags_1[0]), /* 1 */
	asn_DEF_RICaction_ToBeSetup_ItemIEs_tags_1,	/* Same as above */
	sizeof(asn_DEF_RICaction_ToBeSetup_ItemIEs_tags_1)
		/sizeof(asn_DEF_RICaction_ToBeSetup_ItemIEs_tags_1[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICaction_ToBeSetup_ItemIEs_1,
	3,	/* Elements count */
	&asn_SPC_RICaction_ToBeSetup_ItemIEs_specs_1	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_8[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_Admitted_ItemIEs__value, choice.RICaction_Admitted_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICaction_Admitted_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICaction-Admitted-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_8[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICaction-Admitted-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_8 = {
	sizeof(struct RICaction_Admitted_ItemIEs__value),
	offsetof(struct RICaction_Admitted_ItemIEs__value, _asn_ctx),
	offsetof(struct RICaction_Admitted_ItemIEs__value, present),
	sizeof(((struct RICaction_Admitted_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_8,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_8 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_8,
	1,	/* Elements count */
	&asn_SPC_value_specs_8	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICaction_Admitted_ItemIEs_5[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_Admitted_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_6,  memb_id_constraint_5 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_Admitted_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICaction_Admitted_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_7,  memb_criticality_constraint_5 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICaction_Admitted_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_8,
		select_RICaction_Admitted_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_8,  memb_value_constraint_5 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICaction_Admitted_ItemIEs_tags_5[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICaction_Admitted_ItemIEs_tag2el_5[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICaction_Admitted_ItemIEs_specs_5 = {
	sizeof(struct RICaction_Admitted_ItemIEs),
	offsetof(struct RICaction_Admitted_ItemIEs, _asn_ctx),
	asn_MAP_RICaction_Admitted_ItemIEs_tag2el_5,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICaction_Admitted_ItemIEs = {
	"RICaction-Admitted-ItemIEs",
	"RICaction-Admitted-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICaction_Admitted_ItemIEs_tags_5,
	sizeof(asn_DEF_RICaction_Admitted_ItemIEs_tags_5)
		/sizeof(asn_DEF_RICaction_Admitted_ItemIEs_tags_5[0]), /* 1 */
	asn_DEF_RICaction_Admitted_ItemIEs_tags_5,	/* Same as above */
	sizeof(asn_DEF_RICaction_Admitted_ItemIEs_tags_5)
		/sizeof(asn_DEF_RICaction_Admitted_ItemIEs_tags_5[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICaction_Admitted_ItemIEs_5,
	3,	/* Elements count */
	&asn_SPC_RICaction_Admitted_ItemIEs_specs_5	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_12[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_NotAdmitted_ItemIEs__value, choice.RICaction_NotAdmitted_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICaction_NotAdmitted_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICaction-NotAdmitted-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_12[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICaction-NotAdmitted-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_12 = {
	sizeof(struct RICaction_NotAdmitted_ItemIEs__value),
	offsetof(struct RICaction_NotAdmitted_ItemIEs__value, _asn_ctx),
	offsetof(struct RICaction_NotAdmitted_ItemIEs__value, present),
	sizeof(((struct RICaction_NotAdmitted_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_12,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_12 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_12,
	1,	/* Elements count */
	&asn_SPC_value_specs_12	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICaction_NotAdmitted_ItemIEs_9[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_NotAdmitted_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_10,  memb_id_constraint_9 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICaction_NotAdmitted_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICaction_NotAdmitted_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_11,  memb_criticality_constraint_9 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICaction_NotAdmitted_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_12,
		select_RICaction_NotAdmitted_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_12,  memb_value_constraint_9 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICaction_NotAdmitted_ItemIEs_tags_9[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICaction_NotAdmitted_ItemIEs_tag2el_9[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICaction_NotAdmitted_ItemIEs_specs_9 = {
	sizeof(struct RICaction_NotAdmitted_ItemIEs),
	offsetof(struct RICaction_NotAdmitted_ItemIEs, _asn_ctx),
	asn_MAP_RICaction_NotAdmitted_ItemIEs_tag2el_9,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICaction_NotAdmitted_ItemIEs = {
	"RICaction-NotAdmitted-ItemIEs",
	"RICaction-NotAdmitted-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICaction_NotAdmitted_ItemIEs_tags_9,
	sizeof(asn_DEF_RICaction_NotAdmitted_ItemIEs_tags_9)
		/sizeof(asn_DEF_RICaction_NotAdmitted_ItemIEs_tags_9[0]), /* 1 */
	asn_DEF_RICaction_NotAdmitted_ItemIEs_tags_9,	/* Same as above */
	sizeof(asn_DEF_RICaction_NotAdmitted_ItemIEs_tags_9)
		/sizeof(asn_DEF_RICaction_NotAdmitted_ItemIEs_tags_9[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICaction_NotAdmitted_ItemIEs_9,
	3,	/* Elements count */
	&asn_SPC_RICaction_NotAdmitted_ItemIEs_specs_9	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_16[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunction_ItemIEs__value, choice.RANfunction_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunction_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunction-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_16[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RANfunction-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_16 = {
	sizeof(struct RANfunction_ItemIEs__value),
	offsetof(struct RANfunction_ItemIEs__value, _asn_ctx),
	offsetof(struct RANfunction_ItemIEs__value, present),
	sizeof(((struct RANfunction_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_16,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_16 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_16,
	1,	/* Elements count */
	&asn_SPC_value_specs_16	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RANfunction_ItemIEs_13[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunction_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_14,  memb_id_constraint_13 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunction_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RANfunction_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_15,  memb_criticality_constraint_13 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RANfunction_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_16,
		select_RANfunction_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_16,  memb_value_constraint_13 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RANfunction_ItemIEs_tags_13[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RANfunction_ItemIEs_tag2el_13[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RANfunction_ItemIEs_specs_13 = {
	sizeof(struct RANfunction_ItemIEs),
	offsetof(struct RANfunction_ItemIEs, _asn_ctx),
	asn_MAP_RANfunction_ItemIEs_tag2el_13,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RANfunction_ItemIEs = {
	"RANfunction-ItemIEs",
	"RANfunction-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RANfunction_ItemIEs_tags_13,
	sizeof(asn_DEF_RANfunction_ItemIEs_tags_13)
		/sizeof(asn_DEF_RANfunction_ItemIEs_tags_13[0]), /* 1 */
	asn_DEF_RANfunction_ItemIEs_tags_13,	/* Same as above */
	sizeof(asn_DEF_RANfunction_ItemIEs_tags_13)
		/sizeof(asn_DEF_RANfunction_ItemIEs_tags_13[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RANfunction_ItemIEs_13,
	3,	/* Elements count */
	&asn_SPC_RANfunction_ItemIEs_specs_13	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_20[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunctionID_ItemIEs__value, choice.RANfunctionID_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctionID_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_20[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RANfunctionID-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_20 = {
	sizeof(struct RANfunctionID_ItemIEs__value),
	offsetof(struct RANfunctionID_ItemIEs__value, _asn_ctx),
	offsetof(struct RANfunctionID_ItemIEs__value, present),
	sizeof(((struct RANfunctionID_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_20,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_20 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_20,
	1,	/* Elements count */
	&asn_SPC_value_specs_20	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RANfunctionID_ItemIEs_17[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunctionID_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_18,  memb_id_constraint_17 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunctionID_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RANfunctionID_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_19,  memb_criticality_constraint_17 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RANfunctionID_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_20,
		select_RANfunctionID_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_20,  memb_value_constraint_17 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RANfunctionID_ItemIEs_tags_17[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RANfunctionID_ItemIEs_tag2el_17[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RANfunctionID_ItemIEs_specs_17 = {
	sizeof(struct RANfunctionID_ItemIEs),
	offsetof(struct RANfunctionID_ItemIEs, _asn_ctx),
	asn_MAP_RANfunctionID_ItemIEs_tag2el_17,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RANfunctionID_ItemIEs = {
	"RANfunctionID-ItemIEs",
	"RANfunctionID-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RANfunctionID_ItemIEs_tags_17,
	sizeof(asn_DEF_RANfunctionID_ItemIEs_tags_17)
		/sizeof(asn_DEF_RANfunctionID_ItemIEs_tags_17[0]), /* 1 */
	asn_DEF_RANfunctionID_ItemIEs_tags_17,	/* Same as above */
	sizeof(asn_DEF_RANfunctionID_ItemIEs_tags_17)
		/sizeof(asn_DEF_RANfunctionID_ItemIEs_tags_17[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RANfunctionID_ItemIEs_17,
	3,	/* Elements count */
	&asn_SPC_RANfunctionID_ItemIEs_specs_17	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_24[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunctionIDcause_ItemIEs__value, choice.RANfunctionIDcause_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctionIDcause_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionIDcause-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_24[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RANfunctionIDcause-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_24 = {
	sizeof(struct RANfunctionIDcause_ItemIEs__value),
	offsetof(struct RANfunctionIDcause_ItemIEs__value, _asn_ctx),
	offsetof(struct RANfunctionIDcause_ItemIEs__value, present),
	sizeof(((struct RANfunctionIDcause_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_24,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_24 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_24,
	1,	/* Elements count */
	&asn_SPC_value_specs_24	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RANfunctionIDcause_ItemIEs_21[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunctionIDcause_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_22,  memb_id_constraint_21 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RANfunctionIDcause_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RANfunctionIDcause_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_23,  memb_criticality_constraint_21 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RANfunctionIDcause_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_24,
		select_RANfunctionIDcause_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_24,  memb_value_constraint_21 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RANfunctionIDcause_ItemIEs_tags_21[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RANfunctionIDcause_ItemIEs_tag2el_21[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RANfunctionIDcause_ItemIEs_specs_21 = {
	sizeof(struct RANfunctionIDcause_ItemIEs),
	offsetof(struct RANfunctionIDcause_ItemIEs, _asn_ctx),
	asn_MAP_RANfunctionIDcause_ItemIEs_tag2el_21,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RANfunctionIDcause_ItemIEs = {
	"RANfunctionIDcause-ItemIEs",
	"RANfunctionIDcause-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RANfunctionIDcause_ItemIEs_tags_21,
	sizeof(asn_DEF_RANfunctionIDcause_ItemIEs_tags_21)
		/sizeof(asn_DEF_RANfunctionIDcause_ItemIEs_tags_21[0]), /* 1 */
	asn_DEF_RANfunctionIDcause_ItemIEs_tags_21,	/* Same as above */
	sizeof(asn_DEF_RANfunctionIDcause_ItemIEs_tags_21)
		/sizeof(asn_DEF_RANfunctionIDcause_ItemIEs_tags_21[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RANfunctionIDcause_ItemIEs_21,
	3,	/* Elements count */
	&asn_SPC_RANfunctionIDcause_ItemIEs_specs_21	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_28[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CellInformation_ItemIEs__value, choice.CellInformation_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CellInformation_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CellInformation-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_28[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* CellInformation-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_28 = {
	sizeof(struct CellInformation_ItemIEs__value),
	offsetof(struct CellInformation_ItemIEs__value, _asn_ctx),
	offsetof(struct CellInformation_ItemIEs__value, present),
	sizeof(((struct CellInformation_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_28,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_28 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_28,
	1,	/* Elements count */
	&asn_SPC_value_specs_28	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_CellInformation_ItemIEs_25[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CellInformation_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_26,  memb_id_constraint_25 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct CellInformation_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_CellInformation_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_27,  memb_criticality_constraint_25 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct CellInformation_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_28,
		select_CellInformation_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_28,  memb_value_constraint_25 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_CellInformation_ItemIEs_tags_25[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_CellInformation_ItemIEs_tag2el_25[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_CellInformation_ItemIEs_specs_25 = {
	sizeof(struct CellInformation_ItemIEs),
	offsetof(struct CellInformation_ItemIEs, _asn_ctx),
	asn_MAP_CellInformation_ItemIEs_tag2el_25,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_CellInformation_ItemIEs = {
	"CellInformation-ItemIEs",
	"CellInformation-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_CellInformation_ItemIEs_tags_25,
	sizeof(asn_DEF_CellInformation_ItemIEs_tags_25)
		/sizeof(asn_DEF_CellInformation_ItemIEs_tags_25[0]), /* 1 */
	asn_DEF_CellInformation_ItemIEs_tags_25,	/* Same as above */
	sizeof(asn_DEF_CellInformation_ItemIEs_tags_25)
		/sizeof(asn_DEF_CellInformation_ItemIEs_tags_25[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_CellInformation_ItemIEs_25,
	3,	/* Elements count */
	&asn_SPC_CellInformation_ItemIEs_specs_25	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_32[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CellToReport_ItemIEs__value, choice.CellToReport_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CellToReport_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CellToReport-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_32[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* CellToReport-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_32 = {
	sizeof(struct CellToReport_ItemIEs__value),
	offsetof(struct CellToReport_ItemIEs__value, _asn_ctx),
	offsetof(struct CellToReport_ItemIEs__value, present),
	sizeof(((struct CellToReport_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_32,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_32 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_32,
	1,	/* Elements count */
	&asn_SPC_value_specs_32	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_CellToReport_ItemIEs_29[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CellToReport_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_30,  memb_id_constraint_29 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct CellToReport_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_CellToReport_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_31,  memb_criticality_constraint_29 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct CellToReport_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_32,
		select_CellToReport_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_32,  memb_value_constraint_29 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_CellToReport_ItemIEs_tags_29[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_CellToReport_ItemIEs_tag2el_29[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_CellToReport_ItemIEs_specs_29 = {
	sizeof(struct CellToReport_ItemIEs),
	offsetof(struct CellToReport_ItemIEs, _asn_ctx),
	asn_MAP_CellToReport_ItemIEs_tag2el_29,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_CellToReport_ItemIEs = {
	"CellToReport-ItemIEs",
	"CellToReport-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_CellToReport_ItemIEs_tags_29,
	sizeof(asn_DEF_CellToReport_ItemIEs_tags_29)
		/sizeof(asn_DEF_CellToReport_ItemIEs_tags_29[0]), /* 1 */
	asn_DEF_CellToReport_ItemIEs_tags_29,	/* Same as above */
	sizeof(asn_DEF_CellToReport_ItemIEs_tags_29)
		/sizeof(asn_DEF_CellToReport_ItemIEs_tags_29[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_CellToReport_ItemIEs_29,
	3,	/* Elements count */
	&asn_SPC_CellToReport_ItemIEs_specs_29	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_36[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct MeasurementInitiationResult_ItemIEs__value, choice.MeasurementInitiationResult_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_MeasurementInitiationResult_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"MeasurementInitiationResult-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_36[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* MeasurementInitiationResult-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_36 = {
	sizeof(struct MeasurementInitiationResult_ItemIEs__value),
	offsetof(struct MeasurementInitiationResult_ItemIEs__value, _asn_ctx),
	offsetof(struct MeasurementInitiationResult_ItemIEs__value, present),
	sizeof(((struct MeasurementInitiationResult_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_36,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_36 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_36,
	1,	/* Elements count */
	&asn_SPC_value_specs_36	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_MeasurementInitiationResult_ItemIEs_33[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct MeasurementInitiationResult_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_34,  memb_id_constraint_33 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct MeasurementInitiationResult_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_MeasurementInitiationResult_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_35,  memb_criticality_constraint_33 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct MeasurementInitiationResult_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_36,
		select_MeasurementInitiationResult_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_36,  memb_value_constraint_33 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_MeasurementInitiationResult_ItemIEs_tags_33[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_MeasurementInitiationResult_ItemIEs_tag2el_33[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_MeasurementInitiationResult_ItemIEs_specs_33 = {
	sizeof(struct MeasurementInitiationResult_ItemIEs),
	offsetof(struct MeasurementInitiationResult_ItemIEs, _asn_ctx),
	asn_MAP_MeasurementInitiationResult_ItemIEs_tag2el_33,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_MeasurementInitiationResult_ItemIEs = {
	"MeasurementInitiationResult-ItemIEs",
	"MeasurementInitiationResult-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_MeasurementInitiationResult_ItemIEs_tags_33,
	sizeof(asn_DEF_MeasurementInitiationResult_ItemIEs_tags_33)
		/sizeof(asn_DEF_MeasurementInitiationResult_ItemIEs_tags_33[0]), /* 1 */
	asn_DEF_MeasurementInitiationResult_ItemIEs_tags_33,	/* Same as above */
	sizeof(asn_DEF_MeasurementInitiationResult_ItemIEs_tags_33)
		/sizeof(asn_DEF_MeasurementInitiationResult_ItemIEs_tags_33[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_MeasurementInitiationResult_ItemIEs_33,
	3,	/* Elements count */
	&asn_SPC_MeasurementInitiationResult_ItemIEs_specs_33	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_40[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct MeasurementFailureCause_ItemIEs__value, choice.MeasurementFailureCause_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_MeasurementFailureCause_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"MeasurementFailureCause-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_40[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* MeasurementFailureCause-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_40 = {
	sizeof(struct MeasurementFailureCause_ItemIEs__value),
	offsetof(struct MeasurementFailureCause_ItemIEs__value, _asn_ctx),
	offsetof(struct MeasurementFailureCause_ItemIEs__value, present),
	sizeof(((struct MeasurementFailureCause_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_40,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_40 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_40,
	1,	/* Elements count */
	&asn_SPC_value_specs_40	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_MeasurementFailureCause_ItemIEs_37[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct MeasurementFailureCause_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_38,  memb_id_constraint_37 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct MeasurementFailureCause_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_MeasurementFailureCause_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_39,  memb_criticality_constraint_37 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct MeasurementFailureCause_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_40,
		select_MeasurementFailureCause_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_40,  memb_value_constraint_37 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_MeasurementFailureCause_ItemIEs_tags_37[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_MeasurementFailureCause_ItemIEs_tag2el_37[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_MeasurementFailureCause_ItemIEs_specs_37 = {
	sizeof(struct MeasurementFailureCause_ItemIEs),
	offsetof(struct MeasurementFailureCause_ItemIEs, _asn_ctx),
	asn_MAP_MeasurementFailureCause_ItemIEs_tag2el_37,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_MeasurementFailureCause_ItemIEs = {
	"MeasurementFailureCause-ItemIEs",
	"MeasurementFailureCause-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_MeasurementFailureCause_ItemIEs_tags_37,
	sizeof(asn_DEF_MeasurementFailureCause_ItemIEs_tags_37)
		/sizeof(asn_DEF_MeasurementFailureCause_ItemIEs_tags_37[0]), /* 1 */
	asn_DEF_MeasurementFailureCause_ItemIEs_tags_37,	/* Same as above */
	sizeof(asn_DEF_MeasurementFailureCause_ItemIEs_tags_37)
		/sizeof(asn_DEF_MeasurementFailureCause_ItemIEs_tags_37[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_MeasurementFailureCause_ItemIEs_37,
	3,	/* Elements count */
	&asn_SPC_MeasurementFailureCause_ItemIEs_specs_37	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_44[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CompleteFailureCauseInformation_ItemIEs__value, choice.CompleteFailureCauseInformation_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CompleteFailureCauseInformation_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CompleteFailureCauseInformation-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_44[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* CompleteFailureCauseInformation-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_44 = {
	sizeof(struct CompleteFailureCauseInformation_ItemIEs__value),
	offsetof(struct CompleteFailureCauseInformation_ItemIEs__value, _asn_ctx),
	offsetof(struct CompleteFailureCauseInformation_ItemIEs__value, present),
	sizeof(((struct CompleteFailureCauseInformation_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_44,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_44 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_44,
	1,	/* Elements count */
	&asn_SPC_value_specs_44	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_CompleteFailureCauseInformation_ItemIEs_41[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CompleteFailureCauseInformation_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_42,  memb_id_constraint_41 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct CompleteFailureCauseInformation_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_CompleteFailureCauseInformation_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_43,  memb_criticality_constraint_41 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct CompleteFailureCauseInformation_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_44,
		select_CompleteFailureCauseInformation_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_44,  memb_value_constraint_41 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_CompleteFailureCauseInformation_ItemIEs_tags_41[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_CompleteFailureCauseInformation_ItemIEs_tag2el_41[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_CompleteFailureCauseInformation_ItemIEs_specs_41 = {
	sizeof(struct CompleteFailureCauseInformation_ItemIEs),
	offsetof(struct CompleteFailureCauseInformation_ItemIEs, _asn_ctx),
	asn_MAP_CompleteFailureCauseInformation_ItemIEs_tag2el_41,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_CompleteFailureCauseInformation_ItemIEs = {
	"CompleteFailureCauseInformation-ItemIEs",
	"CompleteFailureCauseInformation-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_CompleteFailureCauseInformation_ItemIEs_tags_41,
	sizeof(asn_DEF_CompleteFailureCauseInformation_ItemIEs_tags_41)
		/sizeof(asn_DEF_CompleteFailureCauseInformation_ItemIEs_tags_41[0]), /* 1 */
	asn_DEF_CompleteFailureCauseInformation_ItemIEs_tags_41,	/* Same as above */
	sizeof(asn_DEF_CompleteFailureCauseInformation_ItemIEs_tags_41)
		/sizeof(asn_DEF_CompleteFailureCauseInformation_ItemIEs_tags_41[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_CompleteFailureCauseInformation_ItemIEs_41,
	3,	/* Elements count */
	&asn_SPC_CompleteFailureCauseInformation_ItemIEs_specs_41	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_48[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CellMeasurementResult_ItemIEs__value, choice.CellMeasurementResult_Item),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CellMeasurementResult_Item,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CellMeasurementResult-Item"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_48[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* CellMeasurementResult-Item */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_48 = {
	sizeof(struct CellMeasurementResult_ItemIEs__value),
	offsetof(struct CellMeasurementResult_ItemIEs__value, _asn_ctx),
	offsetof(struct CellMeasurementResult_ItemIEs__value, present),
	sizeof(((struct CellMeasurementResult_ItemIEs__value *)0)->present),
	asn_MAP_value_tag2el_48,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_48 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_48,
	1,	/* Elements count */
	&asn_SPC_value_specs_48	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_CellMeasurementResult_ItemIEs_45[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct CellMeasurementResult_ItemIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_46,  memb_id_constraint_45 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct CellMeasurementResult_ItemIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_CellMeasurementResult_ItemIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_47,  memb_criticality_constraint_45 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct CellMeasurementResult_ItemIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_48,
		select_CellMeasurementResult_ItemIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_48,  memb_value_constraint_45 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_CellMeasurementResult_ItemIEs_tags_45[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_CellMeasurementResult_ItemIEs_tag2el_45[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_CellMeasurementResult_ItemIEs_specs_45 = {
	sizeof(struct CellMeasurementResult_ItemIEs),
	offsetof(struct CellMeasurementResult_ItemIEs, _asn_ctx),
	asn_MAP_CellMeasurementResult_ItemIEs_tag2el_45,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_CellMeasurementResult_ItemIEs = {
	"CellMeasurementResult-ItemIEs",
	"CellMeasurementResult-ItemIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_CellMeasurementResult_ItemIEs_tags_45,
	sizeof(asn_DEF_CellMeasurementResult_ItemIEs_tags_45)
		/sizeof(asn_DEF_CellMeasurementResult_ItemIEs_tags_45[0]), /* 1 */
	asn_DEF_CellMeasurementResult_ItemIEs_tags_45,	/* Same as above */
	sizeof(asn_DEF_CellMeasurementResult_ItemIEs_tags_45)
		/sizeof(asn_DEF_CellMeasurementResult_ItemIEs_tags_45[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_CellMeasurementResult_ItemIEs_45,
	3,	/* Elements count */
	&asn_SPC_CellMeasurementResult_ItemIEs_specs_45	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_52[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionRequest_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionRequest_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionRequest_IEs__value, choice.RICsubscription),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICsubscription,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICsubscription"
		},
};
static const unsigned asn_MAP_value_to_canonical_52[] = { 1, 0, 2 };
static const unsigned asn_MAP_value_from_canonical_52[] = { 1, 0, 2 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_52[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* RICrequestID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 } /* RICsubscription */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_52 = {
	sizeof(struct RICsubscriptionRequest_IEs__value),
	offsetof(struct RICsubscriptionRequest_IEs__value, _asn_ctx),
	offsetof(struct RICsubscriptionRequest_IEs__value, present),
	sizeof(((struct RICsubscriptionRequest_IEs__value *)0)->present),
	asn_MAP_value_tag2el_52,
	3,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_52,
	asn_MAP_value_from_canonical_52,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_52 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_52,
	3,	/* Elements count */
	&asn_SPC_value_specs_52	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICsubscriptionRequest_IEs_49[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionRequest_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_50,  memb_id_constraint_49 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionRequest_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICsubscriptionRequest_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_51,  memb_criticality_constraint_49 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionRequest_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_52,
		select_RICsubscriptionRequest_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_52,  memb_value_constraint_49 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICsubscriptionRequest_IEs_tags_49[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICsubscriptionRequest_IEs_tag2el_49[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICsubscriptionRequest_IEs_specs_49 = {
	sizeof(struct RICsubscriptionRequest_IEs),
	offsetof(struct RICsubscriptionRequest_IEs, _asn_ctx),
	asn_MAP_RICsubscriptionRequest_IEs_tag2el_49,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICsubscriptionRequest_IEs = {
	"RICsubscriptionRequest-IEs",
	"RICsubscriptionRequest-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICsubscriptionRequest_IEs_tags_49,
	sizeof(asn_DEF_RICsubscriptionRequest_IEs_tags_49)
		/sizeof(asn_DEF_RICsubscriptionRequest_IEs_tags_49[0]), /* 1 */
	asn_DEF_RICsubscriptionRequest_IEs_tags_49,	/* Same as above */
	sizeof(asn_DEF_RICsubscriptionRequest_IEs_tags_49)
		/sizeof(asn_DEF_RICsubscriptionRequest_IEs_tags_49[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICsubscriptionRequest_IEs_49,
	3,	/* Elements count */
	&asn_SPC_RICsubscriptionRequest_IEs_specs_49	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_56[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionResponse_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionResponse_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionResponse_IEs__value, choice.RICaction_Admitted_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICaction_Admitted_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICaction-Admitted-List"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionResponse_IEs__value, choice.RICaction_NotAdmitted_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICaction_NotAdmitted_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICaction-NotAdmitted-List"
		},
};
static const unsigned asn_MAP_value_to_canonical_56[] = { 1, 0, 2, 3 };
static const unsigned asn_MAP_value_from_canonical_56[] = { 1, 0, 2, 3 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_56[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 2 }, /* RICrequestID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 1 }, /* RICaction-Admitted-List */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -2, 0 } /* RICaction-NotAdmitted-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_56 = {
	sizeof(struct RICsubscriptionResponse_IEs__value),
	offsetof(struct RICsubscriptionResponse_IEs__value, _asn_ctx),
	offsetof(struct RICsubscriptionResponse_IEs__value, present),
	sizeof(((struct RICsubscriptionResponse_IEs__value *)0)->present),
	asn_MAP_value_tag2el_56,
	4,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_56,
	asn_MAP_value_from_canonical_56,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_56 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_56,
	4,	/* Elements count */
	&asn_SPC_value_specs_56	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICsubscriptionResponse_IEs_53[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionResponse_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_54,  memb_id_constraint_53 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionResponse_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICsubscriptionResponse_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_55,  memb_criticality_constraint_53 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionResponse_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_56,
		select_RICsubscriptionResponse_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_56,  memb_value_constraint_53 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICsubscriptionResponse_IEs_tags_53[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICsubscriptionResponse_IEs_tag2el_53[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICsubscriptionResponse_IEs_specs_53 = {
	sizeof(struct RICsubscriptionResponse_IEs),
	offsetof(struct RICsubscriptionResponse_IEs, _asn_ctx),
	asn_MAP_RICsubscriptionResponse_IEs_tag2el_53,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICsubscriptionResponse_IEs = {
	"RICsubscriptionResponse-IEs",
	"RICsubscriptionResponse-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICsubscriptionResponse_IEs_tags_53,
	sizeof(asn_DEF_RICsubscriptionResponse_IEs_tags_53)
		/sizeof(asn_DEF_RICsubscriptionResponse_IEs_tags_53[0]), /* 1 */
	asn_DEF_RICsubscriptionResponse_IEs_tags_53,	/* Same as above */
	sizeof(asn_DEF_RICsubscriptionResponse_IEs_tags_53)
		/sizeof(asn_DEF_RICsubscriptionResponse_IEs_tags_53[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICsubscriptionResponse_IEs_53,
	3,	/* Elements count */
	&asn_SPC_RICsubscriptionResponse_IEs_specs_53	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_60[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionFailure_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionFailure_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionFailure_IEs__value, choice.RICaction_NotAdmitted_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICaction_NotAdmitted_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICaction-NotAdmitted-List"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
};
static const unsigned asn_MAP_value_to_canonical_60[] = { 1, 0, 2, 3 };
static const unsigned asn_MAP_value_from_canonical_60[] = { 1, 0, 2, 3 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_60[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 2 }, /* RICrequestID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 1 }, /* RICaction-NotAdmitted-List */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -2, 0 } /* CriticalityDiagnostics */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_60 = {
	sizeof(struct RICsubscriptionFailure_IEs__value),
	offsetof(struct RICsubscriptionFailure_IEs__value, _asn_ctx),
	offsetof(struct RICsubscriptionFailure_IEs__value, present),
	sizeof(((struct RICsubscriptionFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_60,
	4,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_60,
	asn_MAP_value_from_canonical_60,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_60 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_60,
	4,	/* Elements count */
	&asn_SPC_value_specs_60	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICsubscriptionFailure_IEs_57[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_58,  memb_id_constraint_57 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICsubscriptionFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_59,  memb_criticality_constraint_57 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_60,
		select_RICsubscriptionFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_60,  memb_value_constraint_57 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICsubscriptionFailure_IEs_tags_57[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICsubscriptionFailure_IEs_tag2el_57[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICsubscriptionFailure_IEs_specs_57 = {
	sizeof(struct RICsubscriptionFailure_IEs),
	offsetof(struct RICsubscriptionFailure_IEs, _asn_ctx),
	asn_MAP_RICsubscriptionFailure_IEs_tag2el_57,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICsubscriptionFailure_IEs = {
	"RICsubscriptionFailure-IEs",
	"RICsubscriptionFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICsubscriptionFailure_IEs_tags_57,
	sizeof(asn_DEF_RICsubscriptionFailure_IEs_tags_57)
		/sizeof(asn_DEF_RICsubscriptionFailure_IEs_tags_57[0]), /* 1 */
	asn_DEF_RICsubscriptionFailure_IEs_tags_57,	/* Same as above */
	sizeof(asn_DEF_RICsubscriptionFailure_IEs_tags_57)
		/sizeof(asn_DEF_RICsubscriptionFailure_IEs_tags_57[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICsubscriptionFailure_IEs_57,
	3,	/* Elements count */
	&asn_SPC_RICsubscriptionFailure_IEs_specs_57	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_64[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteRequest_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteRequest_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
};
static const unsigned asn_MAP_value_to_canonical_64[] = { 1, 0 };
static const unsigned asn_MAP_value_from_canonical_64[] = { 1, 0 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_64[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICrequestID */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_64 = {
	sizeof(struct RICsubscriptionDeleteRequest_IEs__value),
	offsetof(struct RICsubscriptionDeleteRequest_IEs__value, _asn_ctx),
	offsetof(struct RICsubscriptionDeleteRequest_IEs__value, present),
	sizeof(((struct RICsubscriptionDeleteRequest_IEs__value *)0)->present),
	asn_MAP_value_tag2el_64,
	2,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_64,
	asn_MAP_value_from_canonical_64,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_64 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_64,
	2,	/* Elements count */
	&asn_SPC_value_specs_64	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICsubscriptionDeleteRequest_IEs_61[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteRequest_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_62,  memb_id_constraint_61 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteRequest_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICsubscriptionDeleteRequest_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_63,  memb_criticality_constraint_61 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteRequest_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_64,
		select_RICsubscriptionDeleteRequest_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_64,  memb_value_constraint_61 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICsubscriptionDeleteRequest_IEs_tags_61[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICsubscriptionDeleteRequest_IEs_tag2el_61[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICsubscriptionDeleteRequest_IEs_specs_61 = {
	sizeof(struct RICsubscriptionDeleteRequest_IEs),
	offsetof(struct RICsubscriptionDeleteRequest_IEs, _asn_ctx),
	asn_MAP_RICsubscriptionDeleteRequest_IEs_tag2el_61,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICsubscriptionDeleteRequest_IEs = {
	"RICsubscriptionDeleteRequest-IEs",
	"RICsubscriptionDeleteRequest-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICsubscriptionDeleteRequest_IEs_tags_61,
	sizeof(asn_DEF_RICsubscriptionDeleteRequest_IEs_tags_61)
		/sizeof(asn_DEF_RICsubscriptionDeleteRequest_IEs_tags_61[0]), /* 1 */
	asn_DEF_RICsubscriptionDeleteRequest_IEs_tags_61,	/* Same as above */
	sizeof(asn_DEF_RICsubscriptionDeleteRequest_IEs_tags_61)
		/sizeof(asn_DEF_RICsubscriptionDeleteRequest_IEs_tags_61[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICsubscriptionDeleteRequest_IEs_61,
	3,	/* Elements count */
	&asn_SPC_RICsubscriptionDeleteRequest_IEs_specs_61	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_68[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteResponse_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteResponse_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
};
static const unsigned asn_MAP_value_to_canonical_68[] = { 1, 0 };
static const unsigned asn_MAP_value_from_canonical_68[] = { 1, 0 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_68[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICrequestID */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_68 = {
	sizeof(struct RICsubscriptionDeleteResponse_IEs__value),
	offsetof(struct RICsubscriptionDeleteResponse_IEs__value, _asn_ctx),
	offsetof(struct RICsubscriptionDeleteResponse_IEs__value, present),
	sizeof(((struct RICsubscriptionDeleteResponse_IEs__value *)0)->present),
	asn_MAP_value_tag2el_68,
	2,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_68,
	asn_MAP_value_from_canonical_68,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_68 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_68,
	2,	/* Elements count */
	&asn_SPC_value_specs_68	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICsubscriptionDeleteResponse_IEs_65[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteResponse_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_66,  memb_id_constraint_65 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteResponse_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICsubscriptionDeleteResponse_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_67,  memb_criticality_constraint_65 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteResponse_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_68,
		select_RICsubscriptionDeleteResponse_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_68,  memb_value_constraint_65 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICsubscriptionDeleteResponse_IEs_tags_65[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICsubscriptionDeleteResponse_IEs_tag2el_65[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICsubscriptionDeleteResponse_IEs_specs_65 = {
	sizeof(struct RICsubscriptionDeleteResponse_IEs),
	offsetof(struct RICsubscriptionDeleteResponse_IEs, _asn_ctx),
	asn_MAP_RICsubscriptionDeleteResponse_IEs_tag2el_65,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICsubscriptionDeleteResponse_IEs = {
	"RICsubscriptionDeleteResponse-IEs",
	"RICsubscriptionDeleteResponse-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICsubscriptionDeleteResponse_IEs_tags_65,
	sizeof(asn_DEF_RICsubscriptionDeleteResponse_IEs_tags_65)
		/sizeof(asn_DEF_RICsubscriptionDeleteResponse_IEs_tags_65[0]), /* 1 */
	asn_DEF_RICsubscriptionDeleteResponse_IEs_tags_65,	/* Same as above */
	sizeof(asn_DEF_RICsubscriptionDeleteResponse_IEs_tags_65)
		/sizeof(asn_DEF_RICsubscriptionDeleteResponse_IEs_tags_65[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICsubscriptionDeleteResponse_IEs_65,
	3,	/* Elements count */
	&asn_SPC_RICsubscriptionDeleteResponse_IEs_specs_65	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_72[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteFailure_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteFailure_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteFailure_IEs__value, choice.RICcause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_RICcause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcause"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
};
static const unsigned asn_MAP_value_to_canonical_72[] = { 1, 0, 3, 2 };
static const unsigned asn_MAP_value_from_canonical_72[] = { 1, 0, 3, 2 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_72[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* RICrequestID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -1, 0 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* misc */
    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 2, 0, 0 } /* ric */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_72 = {
	sizeof(struct RICsubscriptionDeleteFailure_IEs__value),
	offsetof(struct RICsubscriptionDeleteFailure_IEs__value, _asn_ctx),
	offsetof(struct RICsubscriptionDeleteFailure_IEs__value, present),
	sizeof(((struct RICsubscriptionDeleteFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_72,
	8,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_72,
	asn_MAP_value_from_canonical_72,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_72 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_72,
	4,	/* Elements count */
	&asn_SPC_value_specs_72	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICsubscriptionDeleteFailure_IEs_69[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_70,  memb_id_constraint_69 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICsubscriptionDeleteFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_71,  memb_criticality_constraint_69 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICsubscriptionDeleteFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_72,
		select_RICsubscriptionDeleteFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_72,  memb_value_constraint_69 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICsubscriptionDeleteFailure_IEs_tags_69[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICsubscriptionDeleteFailure_IEs_tag2el_69[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICsubscriptionDeleteFailure_IEs_specs_69 = {
	sizeof(struct RICsubscriptionDeleteFailure_IEs),
	offsetof(struct RICsubscriptionDeleteFailure_IEs, _asn_ctx),
	asn_MAP_RICsubscriptionDeleteFailure_IEs_tag2el_69,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICsubscriptionDeleteFailure_IEs = {
	"RICsubscriptionDeleteFailure-IEs",
	"RICsubscriptionDeleteFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICsubscriptionDeleteFailure_IEs_tags_69,
	sizeof(asn_DEF_RICsubscriptionDeleteFailure_IEs_tags_69)
		/sizeof(asn_DEF_RICsubscriptionDeleteFailure_IEs_tags_69[0]), /* 1 */
	asn_DEF_RICsubscriptionDeleteFailure_IEs_tags_69,	/* Same as above */
	sizeof(asn_DEF_RICsubscriptionDeleteFailure_IEs_tags_69)
		/sizeof(asn_DEF_RICsubscriptionDeleteFailure_IEs_tags_69[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICsubscriptionDeleteFailure_IEs_69,
	3,	/* Elements count */
	&asn_SPC_RICsubscriptionDeleteFailure_IEs_specs_69	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_76[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RICactionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RICactionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICactionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RICindicationSN),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RICindicationSN,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICindicationSN"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RICindicationType),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_RICindicationType,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICindicationType"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RICindicationHeader),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICindicationHeader,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICindicationHeader"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RICindicationMessage),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICindicationMessage,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICindicationMessage"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs__value, choice.RICcallProcessID),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICcallProcessID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcallProcessID"
		},
};
static const unsigned asn_MAP_value_to_canonical_76[] = { 1, 2, 3, 5, 6, 7, 4, 0 };
static const unsigned asn_MAP_value_from_canonical_76[] = { 7, 0, 1, 2, 6, 3, 4, 5 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_76[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 2 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 1 }, /* RICactionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -2, 0 }, /* RICindicationSN */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 5, 0, 2 }, /* RICindicationHeader */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 6, -1, 1 }, /* RICindicationMessage */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 7, -2, 0 }, /* RICcallProcessID */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 4, 0, 0 }, /* RICindicationType */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICrequestID */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_76 = {
	sizeof(struct RICindication_IEs__value),
	offsetof(struct RICindication_IEs__value, _asn_ctx),
	offsetof(struct RICindication_IEs__value, present),
	sizeof(((struct RICindication_IEs__value *)0)->present),
	asn_MAP_value_tag2el_76,
	8,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_76,
	asn_MAP_value_from_canonical_76,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_76 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_76,
	8,	/* Elements count */
	&asn_SPC_value_specs_76	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICindication_IEs_73[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_74,  memb_id_constraint_73 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICindication_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_75,  memb_criticality_constraint_73 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICindication_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_76,
		select_RICindication_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_76,  memb_value_constraint_73 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICindication_IEs_tags_73[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICindication_IEs_tag2el_73[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICindication_IEs_specs_73 = {
	sizeof(struct RICindication_IEs),
	offsetof(struct RICindication_IEs, _asn_ctx),
	asn_MAP_RICindication_IEs_tag2el_73,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICindication_IEs = {
	"RICindication-IEs",
	"RICindication-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICindication_IEs_tags_73,
	sizeof(asn_DEF_RICindication_IEs_tags_73)
		/sizeof(asn_DEF_RICindication_IEs_tags_73[0]), /* 1 */
	asn_DEF_RICindication_IEs_tags_73,	/* Same as above */
	sizeof(asn_DEF_RICindication_IEs_tags_73)
		/sizeof(asn_DEF_RICindication_IEs_tags_73[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICindication_IEs_73,
	3,	/* Elements count */
	&asn_SPC_RICindication_IEs_specs_73	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_80[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs__value, choice.RICcallProcessID),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICcallProcessID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcallProcessID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs__value, choice.RICcontrolHeader),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICcontrolHeader,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcontrolHeader"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs__value, choice.RICcontrolMessage),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICcontrolMessage,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcontrolMessage"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs__value, choice.RICcontrolAckRequest),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_RICcontrolAckRequest,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcontrolAckRequest"
		},
};
static const unsigned asn_MAP_value_to_canonical_80[] = { 1, 2, 3, 4, 5, 0 };
static const unsigned asn_MAP_value_from_canonical_80[] = { 5, 0, 1, 2, 3, 4 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_80[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 2, 0, 2 }, /* RICcallProcessID */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 3, -1, 1 }, /* RICcontrolHeader */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 4, -2, 0 }, /* RICcontrolMessage */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 5, 0, 0 }, /* RICcontrolAckRequest */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICrequestID */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_80 = {
	sizeof(struct RICcontrolRequest_IEs__value),
	offsetof(struct RICcontrolRequest_IEs__value, _asn_ctx),
	offsetof(struct RICcontrolRequest_IEs__value, present),
	sizeof(((struct RICcontrolRequest_IEs__value *)0)->present),
	asn_MAP_value_tag2el_80,
	6,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_80,
	asn_MAP_value_from_canonical_80,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_80 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_80,
	6,	/* Elements count */
	&asn_SPC_value_specs_80	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICcontrolRequest_IEs_77[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_78,  memb_id_constraint_77 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICcontrolRequest_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_79,  memb_criticality_constraint_77 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICcontrolRequest_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_80,
		select_RICcontrolRequest_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_80,  memb_value_constraint_77 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICcontrolRequest_IEs_tags_77[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICcontrolRequest_IEs_tag2el_77[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICcontrolRequest_IEs_specs_77 = {
	sizeof(struct RICcontrolRequest_IEs),
	offsetof(struct RICcontrolRequest_IEs, _asn_ctx),
	asn_MAP_RICcontrolRequest_IEs_tag2el_77,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICcontrolRequest_IEs = {
	"RICcontrolRequest-IEs",
	"RICcontrolRequest-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICcontrolRequest_IEs_tags_77,
	sizeof(asn_DEF_RICcontrolRequest_IEs_tags_77)
		/sizeof(asn_DEF_RICcontrolRequest_IEs_tags_77[0]), /* 1 */
	asn_DEF_RICcontrolRequest_IEs_tags_77,	/* Same as above */
	sizeof(asn_DEF_RICcontrolRequest_IEs_tags_77)
		/sizeof(asn_DEF_RICcontrolRequest_IEs_tags_77[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICcontrolRequest_IEs_77,
	3,	/* Elements count */
	&asn_SPC_RICcontrolRequest_IEs_specs_77	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_84[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolAcknowledge_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolAcknowledge_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolAcknowledge_IEs__value, choice.RICcallProcessID),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICcallProcessID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcallProcessID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolAcknowledge_IEs__value, choice.RICcontrolStatus),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_RICcontrolStatus,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcontrolStatus"
		},
};
static const unsigned asn_MAP_value_to_canonical_84[] = { 1, 2, 3, 0 };
static const unsigned asn_MAP_value_from_canonical_84[] = { 3, 0, 1, 2 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_84[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 2, 0, 0 }, /* RICcallProcessID */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 3, 0, 0 }, /* RICcontrolStatus */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RICrequestID */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_84 = {
	sizeof(struct RICcontrolAcknowledge_IEs__value),
	offsetof(struct RICcontrolAcknowledge_IEs__value, _asn_ctx),
	offsetof(struct RICcontrolAcknowledge_IEs__value, present),
	sizeof(((struct RICcontrolAcknowledge_IEs__value *)0)->present),
	asn_MAP_value_tag2el_84,
	4,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_84,
	asn_MAP_value_from_canonical_84,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_84 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_84,
	4,	/* Elements count */
	&asn_SPC_value_specs_84	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICcontrolAcknowledge_IEs_81[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolAcknowledge_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_82,  memb_id_constraint_81 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolAcknowledge_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICcontrolAcknowledge_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_83,  memb_criticality_constraint_81 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICcontrolAcknowledge_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_84,
		select_RICcontrolAcknowledge_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_84,  memb_value_constraint_81 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICcontrolAcknowledge_IEs_tags_81[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICcontrolAcknowledge_IEs_tag2el_81[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICcontrolAcknowledge_IEs_specs_81 = {
	sizeof(struct RICcontrolAcknowledge_IEs),
	offsetof(struct RICcontrolAcknowledge_IEs, _asn_ctx),
	asn_MAP_RICcontrolAcknowledge_IEs_tag2el_81,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICcontrolAcknowledge_IEs = {
	"RICcontrolAcknowledge-IEs",
	"RICcontrolAcknowledge-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICcontrolAcknowledge_IEs_tags_81,
	sizeof(asn_DEF_RICcontrolAcknowledge_IEs_tags_81)
		/sizeof(asn_DEF_RICcontrolAcknowledge_IEs_tags_81[0]), /* 1 */
	asn_DEF_RICcontrolAcknowledge_IEs_tags_81,	/* Same as above */
	sizeof(asn_DEF_RICcontrolAcknowledge_IEs_tags_81)
		/sizeof(asn_DEF_RICcontrolAcknowledge_IEs_tags_81[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICcontrolAcknowledge_IEs_81,
	3,	/* Elements count */
	&asn_SPC_RICcontrolAcknowledge_IEs_specs_81	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_88[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolFailure_IEs__value, choice.RICrequestID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RICrequestID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICrequestID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolFailure_IEs__value, choice.RANfunctionID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_RANfunctionID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolFailure_IEs__value, choice.RICcallProcessID),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_RICcallProcessID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcallProcessID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolFailure_IEs__value, choice.RICcause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_RICcause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RICcause"
		},
};
static const unsigned asn_MAP_value_to_canonical_88[] = { 1, 2, 0, 3 };
static const unsigned asn_MAP_value_from_canonical_88[] = { 2, 0, 1, 3 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_88[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* RANfunctionID */
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 2, 0, 0 }, /* RICcallProcessID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* RICrequestID */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* misc */
    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* ric */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_88 = {
	sizeof(struct RICcontrolFailure_IEs__value),
	offsetof(struct RICcontrolFailure_IEs__value, _asn_ctx),
	offsetof(struct RICcontrolFailure_IEs__value, present),
	sizeof(((struct RICcontrolFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_88,
	8,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_88,
	asn_MAP_value_from_canonical_88,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_88 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_88,
	4,	/* Elements count */
	&asn_SPC_value_specs_88	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICcontrolFailure_IEs_85[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_86,  memb_id_constraint_85 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICcontrolFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICcontrolFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_87,  memb_criticality_constraint_85 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICcontrolFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_88,
		select_RICcontrolFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_88,  memb_value_constraint_85 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICcontrolFailure_IEs_tags_85[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICcontrolFailure_IEs_tag2el_85[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICcontrolFailure_IEs_specs_85 = {
	sizeof(struct RICcontrolFailure_IEs),
	offsetof(struct RICcontrolFailure_IEs, _asn_ctx),
	asn_MAP_RICcontrolFailure_IEs_tag2el_85,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICcontrolFailure_IEs = {
	"RICcontrolFailure-IEs",
	"RICcontrolFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICcontrolFailure_IEs_tags_85,
	sizeof(asn_DEF_RICcontrolFailure_IEs_tags_85)
		/sizeof(asn_DEF_RICcontrolFailure_IEs_tags_85[0]), /* 1 */
	asn_DEF_RICcontrolFailure_IEs_tags_85,	/* Same as above */
	sizeof(asn_DEF_RICcontrolFailure_IEs_tags_85)
		/sizeof(asn_DEF_RICcontrolFailure_IEs_tags_85[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICcontrolFailure_IEs_85,
	3,	/* Elements count */
	&asn_SPC_RICcontrolFailure_IEs_specs_85	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_92[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdate_IEs__value, choice.RANfunctions_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctions_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctions-List"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdate_IEs__value, choice.RANfunctionsID_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctionsID_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionsID-List"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_92[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* RANfunctions-List */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* RANfunctionsID-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_92 = {
	sizeof(struct RICserviceUpdate_IEs__value),
	offsetof(struct RICserviceUpdate_IEs__value, _asn_ctx),
	offsetof(struct RICserviceUpdate_IEs__value, present),
	sizeof(((struct RICserviceUpdate_IEs__value *)0)->present),
	asn_MAP_value_tag2el_92,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_92 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_92,
	2,	/* Elements count */
	&asn_SPC_value_specs_92	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICserviceUpdate_IEs_89[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdate_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_90,  memb_id_constraint_89 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdate_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICserviceUpdate_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_91,  memb_criticality_constraint_89 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdate_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_92,
		select_RICserviceUpdate_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_92,  memb_value_constraint_89 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICserviceUpdate_IEs_tags_89[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICserviceUpdate_IEs_tag2el_89[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICserviceUpdate_IEs_specs_89 = {
	sizeof(struct RICserviceUpdate_IEs),
	offsetof(struct RICserviceUpdate_IEs, _asn_ctx),
	asn_MAP_RICserviceUpdate_IEs_tag2el_89,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICserviceUpdate_IEs = {
	"RICserviceUpdate-IEs",
	"RICserviceUpdate-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICserviceUpdate_IEs_tags_89,
	sizeof(asn_DEF_RICserviceUpdate_IEs_tags_89)
		/sizeof(asn_DEF_RICserviceUpdate_IEs_tags_89[0]), /* 1 */
	asn_DEF_RICserviceUpdate_IEs_tags_89,	/* Same as above */
	sizeof(asn_DEF_RICserviceUpdate_IEs_tags_89)
		/sizeof(asn_DEF_RICserviceUpdate_IEs_tags_89[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICserviceUpdate_IEs_89,
	3,	/* Elements count */
	&asn_SPC_RICserviceUpdate_IEs_specs_89	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_96[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateAcknowledge_IEs__value, choice.RANfunctionsID_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctionsID_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionsID-List"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateAcknowledge_IEs__value, choice.RANfunctionsIDcause_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctionsIDcause_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionsIDcause-List"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_96[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* RANfunctionsID-List */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* RANfunctionsIDcause-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_96 = {
	sizeof(struct RICserviceUpdateAcknowledge_IEs__value),
	offsetof(struct RICserviceUpdateAcknowledge_IEs__value, _asn_ctx),
	offsetof(struct RICserviceUpdateAcknowledge_IEs__value, present),
	sizeof(((struct RICserviceUpdateAcknowledge_IEs__value *)0)->present),
	asn_MAP_value_tag2el_96,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_96 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_96,
	2,	/* Elements count */
	&asn_SPC_value_specs_96	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICserviceUpdateAcknowledge_IEs_93[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateAcknowledge_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_94,  memb_id_constraint_93 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateAcknowledge_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICserviceUpdateAcknowledge_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_95,  memb_criticality_constraint_93 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateAcknowledge_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_96,
		select_RICserviceUpdateAcknowledge_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_96,  memb_value_constraint_93 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICserviceUpdateAcknowledge_IEs_tags_93[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICserviceUpdateAcknowledge_IEs_tag2el_93[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICserviceUpdateAcknowledge_IEs_specs_93 = {
	sizeof(struct RICserviceUpdateAcknowledge_IEs),
	offsetof(struct RICserviceUpdateAcknowledge_IEs, _asn_ctx),
	asn_MAP_RICserviceUpdateAcknowledge_IEs_tag2el_93,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICserviceUpdateAcknowledge_IEs = {
	"RICserviceUpdateAcknowledge-IEs",
	"RICserviceUpdateAcknowledge-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICserviceUpdateAcknowledge_IEs_tags_93,
	sizeof(asn_DEF_RICserviceUpdateAcknowledge_IEs_tags_93)
		/sizeof(asn_DEF_RICserviceUpdateAcknowledge_IEs_tags_93[0]), /* 1 */
	asn_DEF_RICserviceUpdateAcknowledge_IEs_tags_93,	/* Same as above */
	sizeof(asn_DEF_RICserviceUpdateAcknowledge_IEs_tags_93)
		/sizeof(asn_DEF_RICserviceUpdateAcknowledge_IEs_tags_93[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICserviceUpdateAcknowledge_IEs_93,
	3,	/* Elements count */
	&asn_SPC_RICserviceUpdateAcknowledge_IEs_specs_93	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_100[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateFailure_IEs__value, choice.RANfunctionsIDcause_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctionsIDcause_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionsIDcause-List"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateFailure_IEs__value, choice.TimeToWait),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_TimeToWait,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"TimeToWait"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
};
static const unsigned asn_MAP_value_to_canonical_100[] = { 1, 0, 2 };
static const unsigned asn_MAP_value_from_canonical_100[] = { 1, 0, 2 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_100[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 }, /* TimeToWait */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* RANfunctionsIDcause-List */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 } /* CriticalityDiagnostics */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_100 = {
	sizeof(struct RICserviceUpdateFailure_IEs__value),
	offsetof(struct RICserviceUpdateFailure_IEs__value, _asn_ctx),
	offsetof(struct RICserviceUpdateFailure_IEs__value, present),
	sizeof(((struct RICserviceUpdateFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_100,
	3,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_100,
	asn_MAP_value_from_canonical_100,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_100 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_100,
	3,	/* Elements count */
	&asn_SPC_value_specs_100	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICserviceUpdateFailure_IEs_97[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_98,  memb_id_constraint_97 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICserviceUpdateFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_99,  memb_criticality_constraint_97 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICserviceUpdateFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_100,
		select_RICserviceUpdateFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_100,  memb_value_constraint_97 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICserviceUpdateFailure_IEs_tags_97[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICserviceUpdateFailure_IEs_tag2el_97[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICserviceUpdateFailure_IEs_specs_97 = {
	sizeof(struct RICserviceUpdateFailure_IEs),
	offsetof(struct RICserviceUpdateFailure_IEs, _asn_ctx),
	asn_MAP_RICserviceUpdateFailure_IEs_tag2el_97,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICserviceUpdateFailure_IEs = {
	"RICserviceUpdateFailure-IEs",
	"RICserviceUpdateFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICserviceUpdateFailure_IEs_tags_97,
	sizeof(asn_DEF_RICserviceUpdateFailure_IEs_tags_97)
		/sizeof(asn_DEF_RICserviceUpdateFailure_IEs_tags_97[0]), /* 1 */
	asn_DEF_RICserviceUpdateFailure_IEs_tags_97,	/* Same as above */
	sizeof(asn_DEF_RICserviceUpdateFailure_IEs_tags_97)
		/sizeof(asn_DEF_RICserviceUpdateFailure_IEs_tags_97[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICserviceUpdateFailure_IEs_97,
	3,	/* Elements count */
	&asn_SPC_RICserviceUpdateFailure_IEs_specs_97	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_104[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceQuery_IEs__value, choice.RANfunctionsID_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_RANfunctionsID_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RANfunctionsID-List"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_104[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* RANfunctionsID-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_104 = {
	sizeof(struct RICserviceQuery_IEs__value),
	offsetof(struct RICserviceQuery_IEs__value, _asn_ctx),
	offsetof(struct RICserviceQuery_IEs__value, present),
	sizeof(((struct RICserviceQuery_IEs__value *)0)->present),
	asn_MAP_value_tag2el_104,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_104 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_104,
	1,	/* Elements count */
	&asn_SPC_value_specs_104	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_RICserviceQuery_IEs_101[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceQuery_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_102,  memb_id_constraint_101 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct RICserviceQuery_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_RICserviceQuery_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_103,  memb_criticality_constraint_101 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct RICserviceQuery_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_104,
		select_RICserviceQuery_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_104,  memb_value_constraint_101 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_RICserviceQuery_IEs_tags_101[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_RICserviceQuery_IEs_tag2el_101[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_RICserviceQuery_IEs_specs_101 = {
	sizeof(struct RICserviceQuery_IEs),
	offsetof(struct RICserviceQuery_IEs, _asn_ctx),
	asn_MAP_RICserviceQuery_IEs_tag2el_101,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_RICserviceQuery_IEs = {
	"RICserviceQuery-IEs",
	"RICserviceQuery-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_RICserviceQuery_IEs_tags_101,
	sizeof(asn_DEF_RICserviceQuery_IEs_tags_101)
		/sizeof(asn_DEF_RICserviceQuery_IEs_tags_101[0]), /* 1 */
	asn_DEF_RICserviceQuery_IEs_tags_101,	/* Same as above */
	sizeof(asn_DEF_RICserviceQuery_IEs_tags_101)
		/sizeof(asn_DEF_RICserviceQuery_IEs_tags_101[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_RICserviceQuery_IEs_101,
	3,	/* Elements count */
	&asn_SPC_RICserviceQuery_IEs_specs_101	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_108[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs__value, choice.UE_X2AP_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_UE_X2AP_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"UE-X2AP-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs__value, choice.Cause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_Cause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Cause"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs__value, choice.UE_X2AP_ID_Extension),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_UE_X2AP_ID_Extension,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"UE-X2AP-ID-Extension"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs__value, choice.SgNB_UE_X2AP_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_SgNB_UE_X2AP_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"SgNB-UE-X2AP-ID"
		},
};
static const unsigned asn_MAP_value_to_canonical_108[] = { 0, 3, 4, 2, 1 };
static const unsigned asn_MAP_value_from_canonical_108[] = { 0, 4, 3, 1, 2 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_108[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* UE-X2AP-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -1, 1 }, /* UE-X2AP-ID-Extension */
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 4, -2, 0 }, /* SgNB-UE-X2AP-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 0 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* misc */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_108 = {
	sizeof(struct ErrorIndication_IEs__value),
	offsetof(struct ErrorIndication_IEs__value, _asn_ctx),
	offsetof(struct ErrorIndication_IEs__value, present),
	sizeof(((struct ErrorIndication_IEs__value *)0)->present),
	asn_MAP_value_tag2el_108,
	8,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_108,
	asn_MAP_value_from_canonical_108,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_108 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_108,
	5,	/* Elements count */
	&asn_SPC_value_specs_108	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ErrorIndication_IEs_105[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_106,  memb_id_constraint_105 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ErrorIndication_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_107,  memb_criticality_constraint_105 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ErrorIndication_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_108,
		select_ErrorIndication_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_108,  memb_value_constraint_105 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ErrorIndication_IEs_tags_105[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ErrorIndication_IEs_tag2el_105[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ErrorIndication_IEs_specs_105 = {
	sizeof(struct ErrorIndication_IEs),
	offsetof(struct ErrorIndication_IEs, _asn_ctx),
	asn_MAP_ErrorIndication_IEs_tag2el_105,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ErrorIndication_IEs = {
	"ErrorIndication-IEs",
	"ErrorIndication-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ErrorIndication_IEs_tags_105,
	sizeof(asn_DEF_ErrorIndication_IEs_tags_105)
		/sizeof(asn_DEF_ErrorIndication_IEs_tags_105[0]), /* 1 */
	asn_DEF_ErrorIndication_IEs_tags_105,	/* Same as above */
	sizeof(asn_DEF_ErrorIndication_IEs_tags_105)
		/sizeof(asn_DEF_ErrorIndication_IEs_tags_105[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ErrorIndication_IEs_105,
	3,	/* Elements count */
	&asn_SPC_ErrorIndication_IEs_specs_105	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_112[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResetRequest_IEs__value, choice.Cause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_Cause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Cause"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_112[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 } /* misc */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_112 = {
	sizeof(struct ResetRequest_IEs__value),
	offsetof(struct ResetRequest_IEs__value, _asn_ctx),
	offsetof(struct ResetRequest_IEs__value, present),
	sizeof(((struct ResetRequest_IEs__value *)0)->present),
	asn_MAP_value_tag2el_112,
	4,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_112 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_112,
	1,	/* Elements count */
	&asn_SPC_value_specs_112	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ResetRequest_IEs_109[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResetRequest_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_110,  memb_id_constraint_109 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResetRequest_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ResetRequest_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_111,  memb_criticality_constraint_109 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ResetRequest_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_112,
		select_ResetRequest_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_112,  memb_value_constraint_109 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ResetRequest_IEs_tags_109[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ResetRequest_IEs_tag2el_109[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ResetRequest_IEs_specs_109 = {
	sizeof(struct ResetRequest_IEs),
	offsetof(struct ResetRequest_IEs, _asn_ctx),
	asn_MAP_ResetRequest_IEs_tag2el_109,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ResetRequest_IEs = {
	"ResetRequest-IEs",
	"ResetRequest-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ResetRequest_IEs_tags_109,
	sizeof(asn_DEF_ResetRequest_IEs_tags_109)
		/sizeof(asn_DEF_ResetRequest_IEs_tags_109[0]), /* 1 */
	asn_DEF_ResetRequest_IEs_tags_109,	/* Same as above */
	sizeof(asn_DEF_ResetRequest_IEs_tags_109)
		/sizeof(asn_DEF_ResetRequest_IEs_tags_109[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ResetRequest_IEs_109,
	3,	/* Elements count */
	&asn_SPC_ResetRequest_IEs_specs_109	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_116[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResetResponse_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_116[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* CriticalityDiagnostics */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_116 = {
	sizeof(struct ResetResponse_IEs__value),
	offsetof(struct ResetResponse_IEs__value, _asn_ctx),
	offsetof(struct ResetResponse_IEs__value, present),
	sizeof(((struct ResetResponse_IEs__value *)0)->present),
	asn_MAP_value_tag2el_116,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_116 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_116,
	1,	/* Elements count */
	&asn_SPC_value_specs_116	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ResetResponse_IEs_113[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResetResponse_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_114,  memb_id_constraint_113 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResetResponse_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ResetResponse_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_115,  memb_criticality_constraint_113 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ResetResponse_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_116,
		select_ResetResponse_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_116,  memb_value_constraint_113 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ResetResponse_IEs_tags_113[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ResetResponse_IEs_tag2el_113[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ResetResponse_IEs_specs_113 = {
	sizeof(struct ResetResponse_IEs),
	offsetof(struct ResetResponse_IEs, _asn_ctx),
	asn_MAP_ResetResponse_IEs_tag2el_113,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ResetResponse_IEs = {
	"ResetResponse-IEs",
	"ResetResponse-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ResetResponse_IEs_tags_113,
	sizeof(asn_DEF_ResetResponse_IEs_tags_113)
		/sizeof(asn_DEF_ResetResponse_IEs_tags_113[0]), /* 1 */
	asn_DEF_ResetResponse_IEs_tags_113,	/* Same as above */
	sizeof(asn_DEF_ResetResponse_IEs_tags_113)
		/sizeof(asn_DEF_ResetResponse_IEs_tags_113[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ResetResponse_IEs_113,
	3,	/* Elements count */
	&asn_SPC_ResetResponse_IEs_specs_113	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_120[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupRequest_IEs__value, choice.GlobalENB_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GlobalENB_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GlobalENB-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupRequest_IEs__value, choice.ServedCells),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedCells,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedCells"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupRequest_IEs__value, choice.GUGroupIDList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GUGroupIDList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GUGroupIDList"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupRequest_IEs__value, choice.LHN_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_LHN_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"LHN-ID"
		},
};
static const unsigned asn_MAP_value_to_canonical_120[] = { 3, 0, 1, 2 };
static const unsigned asn_MAP_value_from_canonical_120[] = { 1, 2, 3, 0 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_120[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 3, 0, 0 }, /* LHN-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 2 }, /* GlobalENB-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 1 }, /* ServedCells */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 0 } /* GUGroupIDList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_120 = {
	sizeof(struct X2SetupRequest_IEs__value),
	offsetof(struct X2SetupRequest_IEs__value, _asn_ctx),
	offsetof(struct X2SetupRequest_IEs__value, present),
	sizeof(((struct X2SetupRequest_IEs__value *)0)->present),
	asn_MAP_value_tag2el_120,
	4,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_120,
	asn_MAP_value_from_canonical_120,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_120 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_120,
	4,	/* Elements count */
	&asn_SPC_value_specs_120	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_X2SetupRequest_IEs_117[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupRequest_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_118,  memb_id_constraint_117 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupRequest_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_X2SetupRequest_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_119,  memb_criticality_constraint_117 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct X2SetupRequest_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_120,
		select_X2SetupRequest_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_120,  memb_value_constraint_117 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_X2SetupRequest_IEs_tags_117[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_X2SetupRequest_IEs_tag2el_117[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_X2SetupRequest_IEs_specs_117 = {
	sizeof(struct X2SetupRequest_IEs),
	offsetof(struct X2SetupRequest_IEs, _asn_ctx),
	asn_MAP_X2SetupRequest_IEs_tag2el_117,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_X2SetupRequest_IEs = {
	"X2SetupRequest-IEs",
	"X2SetupRequest-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_X2SetupRequest_IEs_tags_117,
	sizeof(asn_DEF_X2SetupRequest_IEs_tags_117)
		/sizeof(asn_DEF_X2SetupRequest_IEs_tags_117[0]), /* 1 */
	asn_DEF_X2SetupRequest_IEs_tags_117,	/* Same as above */
	sizeof(asn_DEF_X2SetupRequest_IEs_tags_117)
		/sizeof(asn_DEF_X2SetupRequest_IEs_tags_117[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_X2SetupRequest_IEs_117,
	3,	/* Elements count */
	&asn_SPC_X2SetupRequest_IEs_specs_117	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_124[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs__value, choice.GlobalENB_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GlobalENB_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GlobalENB-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs__value, choice.ServedCells),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedCells,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedCells"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs__value, choice.GUGroupIDList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GUGroupIDList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GUGroupIDList"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs__value, choice.LHN_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
		0,
		&asn_DEF_LHN_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"LHN-ID"
		},
};
static const unsigned asn_MAP_value_to_canonical_124[] = { 4, 0, 1, 2, 3 };
static const unsigned asn_MAP_value_from_canonical_124[] = { 1, 2, 3, 4, 0 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_124[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 4, 0, 0 }, /* LHN-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 3 }, /* GlobalENB-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 2 }, /* ServedCells */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 1 }, /* GUGroupIDList */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -3, 0 } /* CriticalityDiagnostics */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_124 = {
	sizeof(struct X2SetupResponse_IEs__value),
	offsetof(struct X2SetupResponse_IEs__value, _asn_ctx),
	offsetof(struct X2SetupResponse_IEs__value, present),
	sizeof(((struct X2SetupResponse_IEs__value *)0)->present),
	asn_MAP_value_tag2el_124,
	5,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_124,
	asn_MAP_value_from_canonical_124,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_124 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_124,
	5,	/* Elements count */
	&asn_SPC_value_specs_124	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_X2SetupResponse_IEs_121[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_122,  memb_id_constraint_121 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_X2SetupResponse_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_123,  memb_criticality_constraint_121 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct X2SetupResponse_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_124,
		select_X2SetupResponse_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_124,  memb_value_constraint_121 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_X2SetupResponse_IEs_tags_121[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_X2SetupResponse_IEs_tag2el_121[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_X2SetupResponse_IEs_specs_121 = {
	sizeof(struct X2SetupResponse_IEs),
	offsetof(struct X2SetupResponse_IEs, _asn_ctx),
	asn_MAP_X2SetupResponse_IEs_tag2el_121,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_X2SetupResponse_IEs = {
	"X2SetupResponse-IEs",
	"X2SetupResponse-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_X2SetupResponse_IEs_tags_121,
	sizeof(asn_DEF_X2SetupResponse_IEs_tags_121)
		/sizeof(asn_DEF_X2SetupResponse_IEs_tags_121[0]), /* 1 */
	asn_DEF_X2SetupResponse_IEs_tags_121,	/* Same as above */
	sizeof(asn_DEF_X2SetupResponse_IEs_tags_121)
		/sizeof(asn_DEF_X2SetupResponse_IEs_tags_121[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_X2SetupResponse_IEs_121,
	3,	/* Elements count */
	&asn_SPC_X2SetupResponse_IEs_specs_121	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_128[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupFailure_IEs__value, choice.Cause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_Cause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Cause"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupFailure_IEs__value, choice.TimeToWait),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_TimeToWait,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"TimeToWait"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
};
static const unsigned asn_MAP_value_to_canonical_128[] = { 1, 2, 0 };
static const unsigned asn_MAP_value_from_canonical_128[] = { 2, 0, 1 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_128[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 }, /* TimeToWait */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 0 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 } /* misc */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_128 = {
	sizeof(struct X2SetupFailure_IEs__value),
	offsetof(struct X2SetupFailure_IEs__value, _asn_ctx),
	offsetof(struct X2SetupFailure_IEs__value, present),
	sizeof(((struct X2SetupFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_128,
	6,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_128,
	asn_MAP_value_from_canonical_128,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_128 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_128,
	3,	/* Elements count */
	&asn_SPC_value_specs_128	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_X2SetupFailure_IEs_125[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_126,  memb_id_constraint_125 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct X2SetupFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_X2SetupFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_127,  memb_criticality_constraint_125 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct X2SetupFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_128,
		select_X2SetupFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_128,  memb_value_constraint_125 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_X2SetupFailure_IEs_tags_125[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_X2SetupFailure_IEs_tag2el_125[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_X2SetupFailure_IEs_specs_125 = {
	sizeof(struct X2SetupFailure_IEs),
	offsetof(struct X2SetupFailure_IEs, _asn_ctx),
	asn_MAP_X2SetupFailure_IEs_tag2el_125,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_X2SetupFailure_IEs = {
	"X2SetupFailure-IEs",
	"X2SetupFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_X2SetupFailure_IEs_tags_125,
	sizeof(asn_DEF_X2SetupFailure_IEs_tags_125)
		/sizeof(asn_DEF_X2SetupFailure_IEs_tags_125[0]), /* 1 */
	asn_DEF_X2SetupFailure_IEs_tags_125,	/* Same as above */
	sizeof(asn_DEF_X2SetupFailure_IEs_tags_125)
		/sizeof(asn_DEF_X2SetupFailure_IEs_tags_125[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_X2SetupFailure_IEs_125,
	3,	/* Elements count */
	&asn_SPC_X2SetupFailure_IEs_specs_125	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_132[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct LoadInformation_IEs__value, choice.CellInformation_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CellInformation_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CellInformation-List"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_132[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* CellInformation-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_132 = {
	sizeof(struct LoadInformation_IEs__value),
	offsetof(struct LoadInformation_IEs__value, _asn_ctx),
	offsetof(struct LoadInformation_IEs__value, present),
	sizeof(((struct LoadInformation_IEs__value *)0)->present),
	asn_MAP_value_tag2el_132,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_132 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_132,
	1,	/* Elements count */
	&asn_SPC_value_specs_132	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_LoadInformation_IEs_129[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct LoadInformation_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_130,  memb_id_constraint_129 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct LoadInformation_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_LoadInformation_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_131,  memb_criticality_constraint_129 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct LoadInformation_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_132,
		select_LoadInformation_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_132,  memb_value_constraint_129 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_LoadInformation_IEs_tags_129[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_LoadInformation_IEs_tag2el_129[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_LoadInformation_IEs_specs_129 = {
	sizeof(struct LoadInformation_IEs),
	offsetof(struct LoadInformation_IEs, _asn_ctx),
	asn_MAP_LoadInformation_IEs_tag2el_129,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_LoadInformation_IEs = {
	"LoadInformation-IEs",
	"LoadInformation-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_LoadInformation_IEs_tags_129,
	sizeof(asn_DEF_LoadInformation_IEs_tags_129)
		/sizeof(asn_DEF_LoadInformation_IEs_tags_129[0]), /* 1 */
	asn_DEF_LoadInformation_IEs_tags_129,	/* Same as above */
	sizeof(asn_DEF_LoadInformation_IEs_tags_129)
		/sizeof(asn_DEF_LoadInformation_IEs_tags_129[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_LoadInformation_IEs_129,
	3,	/* Elements count */
	&asn_SPC_LoadInformation_IEs_specs_129	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_136[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs__value, choice.ServedCells),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedCells,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedCells"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs__value, choice.ServedCellsToModify),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedCellsToModify,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedCellsToModify"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs__value, choice.Old_ECGIs),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_Old_ECGIs,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Old-ECGIs"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs__value, choice.GUGroupIDList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GUGroupIDList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GUGroupIDList"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs__value, choice.CoverageModificationList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CoverageModificationList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CoverageModificationList"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_136[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 4 }, /* ServedCells */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 3 }, /* ServedCellsToModify */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 2 }, /* Old-ECGIs */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -3, 1 }, /* GUGroupIDList */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 4, -4, 0 } /* CoverageModificationList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_136 = {
	sizeof(struct ENBConfigurationUpdate_IEs__value),
	offsetof(struct ENBConfigurationUpdate_IEs__value, _asn_ctx),
	offsetof(struct ENBConfigurationUpdate_IEs__value, present),
	sizeof(((struct ENBConfigurationUpdate_IEs__value *)0)->present),
	asn_MAP_value_tag2el_136,
	5,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_136 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_136,
	5,	/* Elements count */
	&asn_SPC_value_specs_136	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENBConfigurationUpdate_IEs_133[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_134,  memb_id_constraint_133 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENBConfigurationUpdate_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_135,  memb_criticality_constraint_133 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdate_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_136,
		select_ENBConfigurationUpdate_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_136,  memb_value_constraint_133 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENBConfigurationUpdate_IEs_tags_133[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENBConfigurationUpdate_IEs_tag2el_133[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENBConfigurationUpdate_IEs_specs_133 = {
	sizeof(struct ENBConfigurationUpdate_IEs),
	offsetof(struct ENBConfigurationUpdate_IEs, _asn_ctx),
	asn_MAP_ENBConfigurationUpdate_IEs_tag2el_133,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENBConfigurationUpdate_IEs = {
	"ENBConfigurationUpdate-IEs",
	"ENBConfigurationUpdate-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENBConfigurationUpdate_IEs_tags_133,
	sizeof(asn_DEF_ENBConfigurationUpdate_IEs_tags_133)
		/sizeof(asn_DEF_ENBConfigurationUpdate_IEs_tags_133[0]), /* 1 */
	asn_DEF_ENBConfigurationUpdate_IEs_tags_133,	/* Same as above */
	sizeof(asn_DEF_ENBConfigurationUpdate_IEs_tags_133)
		/sizeof(asn_DEF_ENBConfigurationUpdate_IEs_tags_133[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENBConfigurationUpdate_IEs_133,
	3,	/* Elements count */
	&asn_SPC_ENBConfigurationUpdate_IEs_specs_133	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_140[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateAcknowledge_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_140[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* CriticalityDiagnostics */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_140 = {
	sizeof(struct ENBConfigurationUpdateAcknowledge_IEs__value),
	offsetof(struct ENBConfigurationUpdateAcknowledge_IEs__value, _asn_ctx),
	offsetof(struct ENBConfigurationUpdateAcknowledge_IEs__value, present),
	sizeof(((struct ENBConfigurationUpdateAcknowledge_IEs__value *)0)->present),
	asn_MAP_value_tag2el_140,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_140 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_140,
	1,	/* Elements count */
	&asn_SPC_value_specs_140	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENBConfigurationUpdateAcknowledge_IEs_137[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateAcknowledge_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_138,  memb_id_constraint_137 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateAcknowledge_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENBConfigurationUpdateAcknowledge_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_139,  memb_criticality_constraint_137 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateAcknowledge_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_140,
		select_ENBConfigurationUpdateAcknowledge_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_140,  memb_value_constraint_137 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENBConfigurationUpdateAcknowledge_IEs_tags_137[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENBConfigurationUpdateAcknowledge_IEs_tag2el_137[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENBConfigurationUpdateAcknowledge_IEs_specs_137 = {
	sizeof(struct ENBConfigurationUpdateAcknowledge_IEs),
	offsetof(struct ENBConfigurationUpdateAcknowledge_IEs, _asn_ctx),
	asn_MAP_ENBConfigurationUpdateAcknowledge_IEs_tag2el_137,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENBConfigurationUpdateAcknowledge_IEs = {
	"ENBConfigurationUpdateAcknowledge-IEs",
	"ENBConfigurationUpdateAcknowledge-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENBConfigurationUpdateAcknowledge_IEs_tags_137,
	sizeof(asn_DEF_ENBConfigurationUpdateAcknowledge_IEs_tags_137)
		/sizeof(asn_DEF_ENBConfigurationUpdateAcknowledge_IEs_tags_137[0]), /* 1 */
	asn_DEF_ENBConfigurationUpdateAcknowledge_IEs_tags_137,	/* Same as above */
	sizeof(asn_DEF_ENBConfigurationUpdateAcknowledge_IEs_tags_137)
		/sizeof(asn_DEF_ENBConfigurationUpdateAcknowledge_IEs_tags_137[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENBConfigurationUpdateAcknowledge_IEs_137,
	3,	/* Elements count */
	&asn_SPC_ENBConfigurationUpdateAcknowledge_IEs_specs_137	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_144[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateFailure_IEs__value, choice.Cause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_Cause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Cause"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateFailure_IEs__value, choice.TimeToWait),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_TimeToWait,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"TimeToWait"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
};
static const unsigned asn_MAP_value_to_canonical_144[] = { 1, 2, 0 };
static const unsigned asn_MAP_value_from_canonical_144[] = { 2, 0, 1 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_144[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 0 }, /* TimeToWait */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 0 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 } /* misc */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_144 = {
	sizeof(struct ENBConfigurationUpdateFailure_IEs__value),
	offsetof(struct ENBConfigurationUpdateFailure_IEs__value, _asn_ctx),
	offsetof(struct ENBConfigurationUpdateFailure_IEs__value, present),
	sizeof(((struct ENBConfigurationUpdateFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_144,
	6,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_144,
	asn_MAP_value_from_canonical_144,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_144 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_144,
	3,	/* Elements count */
	&asn_SPC_value_specs_144	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENBConfigurationUpdateFailure_IEs_141[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_142,  memb_id_constraint_141 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENBConfigurationUpdateFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_143,  memb_criticality_constraint_141 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENBConfigurationUpdateFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_144,
		select_ENBConfigurationUpdateFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_144,  memb_value_constraint_141 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENBConfigurationUpdateFailure_IEs_tags_141[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENBConfigurationUpdateFailure_IEs_tag2el_141[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENBConfigurationUpdateFailure_IEs_specs_141 = {
	sizeof(struct ENBConfigurationUpdateFailure_IEs),
	offsetof(struct ENBConfigurationUpdateFailure_IEs, _asn_ctx),
	asn_MAP_ENBConfigurationUpdateFailure_IEs_tag2el_141,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENBConfigurationUpdateFailure_IEs = {
	"ENBConfigurationUpdateFailure-IEs",
	"ENBConfigurationUpdateFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENBConfigurationUpdateFailure_IEs_tags_141,
	sizeof(asn_DEF_ENBConfigurationUpdateFailure_IEs_tags_141)
		/sizeof(asn_DEF_ENBConfigurationUpdateFailure_IEs_tags_141[0]), /* 1 */
	asn_DEF_ENBConfigurationUpdateFailure_IEs_tags_141,	/* Same as above */
	sizeof(asn_DEF_ENBConfigurationUpdateFailure_IEs_tags_141)
		/sizeof(asn_DEF_ENBConfigurationUpdateFailure_IEs_tags_141[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENBConfigurationUpdateFailure_IEs_141,
	3,	/* Elements count */
	&asn_SPC_ENBConfigurationUpdateFailure_IEs_specs_141	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_148[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.Measurement_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_Measurement_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Measurement-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.Registration_Request),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_Registration_Request,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Registration-Request"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.ReportCharacteristics),
		(ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
		0,
		&asn_DEF_ReportCharacteristics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ReportCharacteristics"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.CellToReport_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CellToReport_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CellToReport-List"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.ReportingPeriodicity),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_ReportingPeriodicity,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ReportingPeriodicity"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.PartialSuccessIndicator),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_PartialSuccessIndicator,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"PartialSuccessIndicator"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.ReportingPeriodicityRSRPMR),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_ReportingPeriodicityRSRPMR,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ReportingPeriodicityRSRPMR"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs__value, choice.ReportingPeriodicityCSIR),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_ReportingPeriodicityCSIR,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ReportingPeriodicityCSIR"
		},
};
static const unsigned asn_MAP_value_to_canonical_148[] = { 0, 2, 1, 4, 5, 6, 7, 3 };
static const unsigned asn_MAP_value_from_canonical_148[] = { 0, 2, 1, 7, 3, 4, 5, 6 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_148[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* Measurement-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 2, 0, 0 }, /* ReportCharacteristics */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 1, 0, 4 }, /* Registration-Request */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 4, -1, 3 }, /* ReportingPeriodicity */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 5, -2, 2 }, /* PartialSuccessIndicator */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 6, -3, 1 }, /* ReportingPeriodicityRSRPMR */
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 7, -4, 0 }, /* ReportingPeriodicityCSIR */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, 0, 0 } /* CellToReport-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_148 = {
	sizeof(struct ResourceStatusRequest_IEs__value),
	offsetof(struct ResourceStatusRequest_IEs__value, _asn_ctx),
	offsetof(struct ResourceStatusRequest_IEs__value, present),
	sizeof(((struct ResourceStatusRequest_IEs__value *)0)->present),
	asn_MAP_value_tag2el_148,
	8,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_148,
	asn_MAP_value_from_canonical_148,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_148 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_148,
	8,	/* Elements count */
	&asn_SPC_value_specs_148	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ResourceStatusRequest_IEs_145[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_146,  memb_id_constraint_145 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ResourceStatusRequest_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_147,  memb_criticality_constraint_145 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ResourceStatusRequest_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_148,
		select_ResourceStatusRequest_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_148,  memb_value_constraint_145 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ResourceStatusRequest_IEs_tags_145[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ResourceStatusRequest_IEs_tag2el_145[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ResourceStatusRequest_IEs_specs_145 = {
	sizeof(struct ResourceStatusRequest_IEs),
	offsetof(struct ResourceStatusRequest_IEs, _asn_ctx),
	asn_MAP_ResourceStatusRequest_IEs_tag2el_145,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ResourceStatusRequest_IEs = {
	"ResourceStatusRequest-IEs",
	"ResourceStatusRequest-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ResourceStatusRequest_IEs_tags_145,
	sizeof(asn_DEF_ResourceStatusRequest_IEs_tags_145)
		/sizeof(asn_DEF_ResourceStatusRequest_IEs_tags_145[0]), /* 1 */
	asn_DEF_ResourceStatusRequest_IEs_tags_145,	/* Same as above */
	sizeof(asn_DEF_ResourceStatusRequest_IEs_tags_145)
		/sizeof(asn_DEF_ResourceStatusRequest_IEs_tags_145[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ResourceStatusRequest_IEs_145,
	3,	/* Elements count */
	&asn_SPC_ResourceStatusRequest_IEs_specs_145	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_152[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusResponse_IEs__value, choice.Measurement_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_Measurement_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Measurement-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusResponse_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusResponse_IEs__value, choice.MeasurementInitiationResult_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_MeasurementInitiationResult_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"MeasurementInitiationResult-List"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_152[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* Measurement-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 1 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 } /* MeasurementInitiationResult-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_152 = {
	sizeof(struct ResourceStatusResponse_IEs__value),
	offsetof(struct ResourceStatusResponse_IEs__value, _asn_ctx),
	offsetof(struct ResourceStatusResponse_IEs__value, present),
	sizeof(((struct ResourceStatusResponse_IEs__value *)0)->present),
	asn_MAP_value_tag2el_152,
	3,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_152 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_152,
	3,	/* Elements count */
	&asn_SPC_value_specs_152	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ResourceStatusResponse_IEs_149[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusResponse_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_150,  memb_id_constraint_149 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusResponse_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ResourceStatusResponse_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_151,  memb_criticality_constraint_149 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ResourceStatusResponse_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_152,
		select_ResourceStatusResponse_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_152,  memb_value_constraint_149 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ResourceStatusResponse_IEs_tags_149[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ResourceStatusResponse_IEs_tag2el_149[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ResourceStatusResponse_IEs_specs_149 = {
	sizeof(struct ResourceStatusResponse_IEs),
	offsetof(struct ResourceStatusResponse_IEs, _asn_ctx),
	asn_MAP_ResourceStatusResponse_IEs_tag2el_149,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ResourceStatusResponse_IEs = {
	"ResourceStatusResponse-IEs",
	"ResourceStatusResponse-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ResourceStatusResponse_IEs_tags_149,
	sizeof(asn_DEF_ResourceStatusResponse_IEs_tags_149)
		/sizeof(asn_DEF_ResourceStatusResponse_IEs_tags_149[0]), /* 1 */
	asn_DEF_ResourceStatusResponse_IEs_tags_149,	/* Same as above */
	sizeof(asn_DEF_ResourceStatusResponse_IEs_tags_149)
		/sizeof(asn_DEF_ResourceStatusResponse_IEs_tags_149[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ResourceStatusResponse_IEs_149,
	3,	/* Elements count */
	&asn_SPC_ResourceStatusResponse_IEs_specs_149	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_156[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusFailure_IEs__value, choice.Measurement_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_Measurement_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Measurement-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusFailure_IEs__value, choice.Cause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_Cause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Cause"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusFailure_IEs__value, choice.CompleteFailureCauseInformation_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CompleteFailureCauseInformation_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CompleteFailureCauseInformation-List"
		},
};
static const unsigned asn_MAP_value_to_canonical_156[] = { 0, 2, 3, 1 };
static const unsigned asn_MAP_value_from_canonical_156[] = { 0, 3, 1, 2 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_156[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* Measurement-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 1 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -1, 0 }, /* CompleteFailureCauseInformation-List */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* misc */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_156 = {
	sizeof(struct ResourceStatusFailure_IEs__value),
	offsetof(struct ResourceStatusFailure_IEs__value, _asn_ctx),
	offsetof(struct ResourceStatusFailure_IEs__value, present),
	sizeof(((struct ResourceStatusFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_156,
	7,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_156,
	asn_MAP_value_from_canonical_156,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_156 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_156,
	4,	/* Elements count */
	&asn_SPC_value_specs_156	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ResourceStatusFailure_IEs_153[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_154,  memb_id_constraint_153 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ResourceStatusFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_155,  memb_criticality_constraint_153 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ResourceStatusFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_156,
		select_ResourceStatusFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_156,  memb_value_constraint_153 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ResourceStatusFailure_IEs_tags_153[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ResourceStatusFailure_IEs_tag2el_153[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ResourceStatusFailure_IEs_specs_153 = {
	sizeof(struct ResourceStatusFailure_IEs),
	offsetof(struct ResourceStatusFailure_IEs, _asn_ctx),
	asn_MAP_ResourceStatusFailure_IEs_tag2el_153,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ResourceStatusFailure_IEs = {
	"ResourceStatusFailure-IEs",
	"ResourceStatusFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ResourceStatusFailure_IEs_tags_153,
	sizeof(asn_DEF_ResourceStatusFailure_IEs_tags_153)
		/sizeof(asn_DEF_ResourceStatusFailure_IEs_tags_153[0]), /* 1 */
	asn_DEF_ResourceStatusFailure_IEs_tags_153,	/* Same as above */
	sizeof(asn_DEF_ResourceStatusFailure_IEs_tags_153)
		/sizeof(asn_DEF_ResourceStatusFailure_IEs_tags_153[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ResourceStatusFailure_IEs_153,
	3,	/* Elements count */
	&asn_SPC_ResourceStatusFailure_IEs_specs_153	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_160[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusUpdate_IEs__value, choice.Measurement_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_Measurement_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Measurement-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusUpdate_IEs__value, choice.CellMeasurementResult_List),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CellMeasurementResult_List,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CellMeasurementResult-List"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_160[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* Measurement-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* CellMeasurementResult-List */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_160 = {
	sizeof(struct ResourceStatusUpdate_IEs__value),
	offsetof(struct ResourceStatusUpdate_IEs__value, _asn_ctx),
	offsetof(struct ResourceStatusUpdate_IEs__value, present),
	sizeof(((struct ResourceStatusUpdate_IEs__value *)0)->present),
	asn_MAP_value_tag2el_160,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_160 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_160,
	2,	/* Elements count */
	&asn_SPC_value_specs_160	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ResourceStatusUpdate_IEs_157[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusUpdate_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_158,  memb_id_constraint_157 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ResourceStatusUpdate_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ResourceStatusUpdate_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_159,  memb_criticality_constraint_157 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ResourceStatusUpdate_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_160,
		select_ResourceStatusUpdate_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_160,  memb_value_constraint_157 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ResourceStatusUpdate_IEs_tags_157[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ResourceStatusUpdate_IEs_tag2el_157[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ResourceStatusUpdate_IEs_specs_157 = {
	sizeof(struct ResourceStatusUpdate_IEs),
	offsetof(struct ResourceStatusUpdate_IEs, _asn_ctx),
	asn_MAP_ResourceStatusUpdate_IEs_tag2el_157,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ResourceStatusUpdate_IEs = {
	"ResourceStatusUpdate-IEs",
	"ResourceStatusUpdate-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ResourceStatusUpdate_IEs_tags_157,
	sizeof(asn_DEF_ResourceStatusUpdate_IEs_tags_157)
		/sizeof(asn_DEF_ResourceStatusUpdate_IEs_tags_157[0]), /* 1 */
	asn_DEF_ResourceStatusUpdate_IEs_tags_157,	/* Same as above */
	sizeof(asn_DEF_ResourceStatusUpdate_IEs_tags_157)
		/sizeof(asn_DEF_ResourceStatusUpdate_IEs_tags_157[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ResourceStatusUpdate_IEs_157,
	3,	/* Elements count */
	&asn_SPC_ResourceStatusUpdate_IEs_specs_157	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_164[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct SeNBReconfigurationComplete_IEs__value, choice.UE_X2AP_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_UE_X2AP_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"UE-X2AP-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct SeNBReconfigurationComplete_IEs__value, choice.ResponseInformationSeNBReconfComp),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_ResponseInformationSeNBReconfComp,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ResponseInformationSeNBReconfComp"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct SeNBReconfigurationComplete_IEs__value, choice.UE_X2AP_ID_Extension),
		(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
		0,
		&asn_DEF_UE_X2AP_ID_Extension,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"UE-X2AP-ID-Extension"
		},
};
static const unsigned asn_MAP_value_to_canonical_164[] = { 0, 2, 1 };
static const unsigned asn_MAP_value_from_canonical_164[] = { 0, 2, 1 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_164[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* UE-X2AP-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* UE-X2AP-ID-Extension */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* success */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* reject-by-MeNB */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_164 = {
	sizeof(struct SeNBReconfigurationComplete_IEs__value),
	offsetof(struct SeNBReconfigurationComplete_IEs__value, _asn_ctx),
	offsetof(struct SeNBReconfigurationComplete_IEs__value, present),
	sizeof(((struct SeNBReconfigurationComplete_IEs__value *)0)->present),
	asn_MAP_value_tag2el_164,
	4,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_164,
	asn_MAP_value_from_canonical_164,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_164 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_164,
	3,	/* Elements count */
	&asn_SPC_value_specs_164	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_SeNBReconfigurationComplete_IEs_161[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct SeNBReconfigurationComplete_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_162,  memb_id_constraint_161 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct SeNBReconfigurationComplete_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_SeNBReconfigurationComplete_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_163,  memb_criticality_constraint_161 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct SeNBReconfigurationComplete_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_164,
		select_SeNBReconfigurationComplete_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_164,  memb_value_constraint_161 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_SeNBReconfigurationComplete_IEs_tags_161[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_SeNBReconfigurationComplete_IEs_tag2el_161[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_SeNBReconfigurationComplete_IEs_specs_161 = {
	sizeof(struct SeNBReconfigurationComplete_IEs),
	offsetof(struct SeNBReconfigurationComplete_IEs, _asn_ctx),
	asn_MAP_SeNBReconfigurationComplete_IEs_tag2el_161,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_SeNBReconfigurationComplete_IEs = {
	"SeNBReconfigurationComplete-IEs",
	"SeNBReconfigurationComplete-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_SeNBReconfigurationComplete_IEs_tags_161,
	sizeof(asn_DEF_SeNBReconfigurationComplete_IEs_tags_161)
		/sizeof(asn_DEF_SeNBReconfigurationComplete_IEs_tags_161[0]), /* 1 */
	asn_DEF_SeNBReconfigurationComplete_IEs_tags_161,	/* Same as above */
	sizeof(asn_DEF_SeNBReconfigurationComplete_IEs_tags_161)
		/sizeof(asn_DEF_SeNBReconfigurationComplete_IEs_tags_161[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_SeNBReconfigurationComplete_IEs_161,
	3,	/* Elements count */
	&asn_SPC_SeNBReconfigurationComplete_IEs_specs_161	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_168[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupRequest_IEs__value, choice.InitiatingNodeType_EndcX2Setup),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_InitiatingNodeType_EndcX2Setup,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"InitiatingNodeType-EndcX2Setup"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_168[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* init-eNB */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 } /* init-en-gNB */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_168 = {
	sizeof(struct ENDCX2SetupRequest_IEs__value),
	offsetof(struct ENDCX2SetupRequest_IEs__value, _asn_ctx),
	offsetof(struct ENDCX2SetupRequest_IEs__value, present),
	sizeof(((struct ENDCX2SetupRequest_IEs__value *)0)->present),
	asn_MAP_value_tag2el_168,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_168 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_168,
	1,	/* Elements count */
	&asn_SPC_value_specs_168	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENDCX2SetupRequest_IEs_165[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupRequest_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_166,  memb_id_constraint_165 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupRequest_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENDCX2SetupRequest_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_167,  memb_criticality_constraint_165 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupRequest_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_168,
		select_ENDCX2SetupRequest_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_168,  memb_value_constraint_165 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENDCX2SetupRequest_IEs_tags_165[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENDCX2SetupRequest_IEs_tag2el_165[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENDCX2SetupRequest_IEs_specs_165 = {
	sizeof(struct ENDCX2SetupRequest_IEs),
	offsetof(struct ENDCX2SetupRequest_IEs, _asn_ctx),
	asn_MAP_ENDCX2SetupRequest_IEs_tag2el_165,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENDCX2SetupRequest_IEs = {
	"ENDCX2SetupRequest-IEs",
	"ENDCX2SetupRequest-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENDCX2SetupRequest_IEs_tags_165,
	sizeof(asn_DEF_ENDCX2SetupRequest_IEs_tags_165)
		/sizeof(asn_DEF_ENDCX2SetupRequest_IEs_tags_165[0]), /* 1 */
	asn_DEF_ENDCX2SetupRequest_IEs_tags_165,	/* Same as above */
	sizeof(asn_DEF_ENDCX2SetupRequest_IEs_tags_165)
		/sizeof(asn_DEF_ENDCX2SetupRequest_IEs_tags_165[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENDCX2SetupRequest_IEs_165,
	3,	/* Elements count */
	&asn_SPC_ENDCX2SetupRequest_IEs_specs_165	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_172[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqIEs__value, choice.GlobalENB_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GlobalENB_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GlobalENB-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqIEs__value, choice.ServedEUTRAcellsENDCX2ManagementList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedEUTRAcellsENDCX2ManagementList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedEUTRAcellsENDCX2ManagementList"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_172[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* GlobalENB-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* ServedEUTRAcellsENDCX2ManagementList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_172 = {
	sizeof(struct ENB_ENDCX2SetupReqIEs__value),
	offsetof(struct ENB_ENDCX2SetupReqIEs__value, _asn_ctx),
	offsetof(struct ENB_ENDCX2SetupReqIEs__value, present),
	sizeof(((struct ENB_ENDCX2SetupReqIEs__value *)0)->present),
	asn_MAP_value_tag2el_172,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_172 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_172,
	2,	/* Elements count */
	&asn_SPC_value_specs_172	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENB_ENDCX2SetupReqIEs_169[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_170,  memb_id_constraint_169 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENB_ENDCX2SetupReqIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_171,  memb_criticality_constraint_169 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_172,
		select_ENB_ENDCX2SetupReqIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_172,  memb_value_constraint_169 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENB_ENDCX2SetupReqIEs_tags_169[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENB_ENDCX2SetupReqIEs_tag2el_169[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENB_ENDCX2SetupReqIEs_specs_169 = {
	sizeof(struct ENB_ENDCX2SetupReqIEs),
	offsetof(struct ENB_ENDCX2SetupReqIEs, _asn_ctx),
	asn_MAP_ENB_ENDCX2SetupReqIEs_tag2el_169,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENB_ENDCX2SetupReqIEs = {
	"ENB-ENDCX2SetupReqIEs",
	"ENB-ENDCX2SetupReqIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENB_ENDCX2SetupReqIEs_tags_169,
	sizeof(asn_DEF_ENB_ENDCX2SetupReqIEs_tags_169)
		/sizeof(asn_DEF_ENB_ENDCX2SetupReqIEs_tags_169[0]), /* 1 */
	asn_DEF_ENB_ENDCX2SetupReqIEs_tags_169,	/* Same as above */
	sizeof(asn_DEF_ENB_ENDCX2SetupReqIEs_tags_169)
		/sizeof(asn_DEF_ENB_ENDCX2SetupReqIEs_tags_169[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENB_ENDCX2SetupReqIEs_169,
	3,	/* Elements count */
	&asn_SPC_ENB_ENDCX2SetupReqIEs_specs_169	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_176[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqIEs__value, choice.GlobalGNB_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GlobalGNB_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GlobalGNB-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqIEs__value, choice.ServedNRcellsENDCX2ManagementList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedNRcellsENDCX2ManagementList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedNRcellsENDCX2ManagementList"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_176[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* GlobalGNB-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* ServedNRcellsENDCX2ManagementList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_176 = {
	sizeof(struct En_gNB_ENDCX2SetupReqIEs__value),
	offsetof(struct En_gNB_ENDCX2SetupReqIEs__value, _asn_ctx),
	offsetof(struct En_gNB_ENDCX2SetupReqIEs__value, present),
	sizeof(((struct En_gNB_ENDCX2SetupReqIEs__value *)0)->present),
	asn_MAP_value_tag2el_176,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_176 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_176,
	2,	/* Elements count */
	&asn_SPC_value_specs_176	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_En_gNB_ENDCX2SetupReqIEs_173[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_174,  memb_id_constraint_173 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_En_gNB_ENDCX2SetupReqIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_175,  memb_criticality_constraint_173 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_176,
		select_En_gNB_ENDCX2SetupReqIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_176,  memb_value_constraint_173 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_En_gNB_ENDCX2SetupReqIEs_tags_173[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_En_gNB_ENDCX2SetupReqIEs_tag2el_173[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_En_gNB_ENDCX2SetupReqIEs_specs_173 = {
	sizeof(struct En_gNB_ENDCX2SetupReqIEs),
	offsetof(struct En_gNB_ENDCX2SetupReqIEs, _asn_ctx),
	asn_MAP_En_gNB_ENDCX2SetupReqIEs_tag2el_173,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_En_gNB_ENDCX2SetupReqIEs = {
	"En-gNB-ENDCX2SetupReqIEs",
	"En-gNB-ENDCX2SetupReqIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_En_gNB_ENDCX2SetupReqIEs_tags_173,
	sizeof(asn_DEF_En_gNB_ENDCX2SetupReqIEs_tags_173)
		/sizeof(asn_DEF_En_gNB_ENDCX2SetupReqIEs_tags_173[0]), /* 1 */
	asn_DEF_En_gNB_ENDCX2SetupReqIEs_tags_173,	/* Same as above */
	sizeof(asn_DEF_En_gNB_ENDCX2SetupReqIEs_tags_173)
		/sizeof(asn_DEF_En_gNB_ENDCX2SetupReqIEs_tags_173[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_En_gNB_ENDCX2SetupReqIEs_173,
	3,	/* Elements count */
	&asn_SPC_En_gNB_ENDCX2SetupReqIEs_specs_173	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_180[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupResponse_IEs__value, choice.RespondingNodeType_EndcX2Setup),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_RespondingNodeType_EndcX2Setup,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RespondingNodeType-EndcX2Setup"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_180[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* respond-eNB */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 } /* respond-en-gNB */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_180 = {
	sizeof(struct ENDCX2SetupResponse_IEs__value),
	offsetof(struct ENDCX2SetupResponse_IEs__value, _asn_ctx),
	offsetof(struct ENDCX2SetupResponse_IEs__value, present),
	sizeof(((struct ENDCX2SetupResponse_IEs__value *)0)->present),
	asn_MAP_value_tag2el_180,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_180 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_180,
	1,	/* Elements count */
	&asn_SPC_value_specs_180	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENDCX2SetupResponse_IEs_177[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupResponse_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_178,  memb_id_constraint_177 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupResponse_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENDCX2SetupResponse_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_179,  memb_criticality_constraint_177 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupResponse_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_180,
		select_ENDCX2SetupResponse_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_180,  memb_value_constraint_177 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENDCX2SetupResponse_IEs_tags_177[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENDCX2SetupResponse_IEs_tag2el_177[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENDCX2SetupResponse_IEs_specs_177 = {
	sizeof(struct ENDCX2SetupResponse_IEs),
	offsetof(struct ENDCX2SetupResponse_IEs, _asn_ctx),
	asn_MAP_ENDCX2SetupResponse_IEs_tag2el_177,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENDCX2SetupResponse_IEs = {
	"ENDCX2SetupResponse-IEs",
	"ENDCX2SetupResponse-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENDCX2SetupResponse_IEs_tags_177,
	sizeof(asn_DEF_ENDCX2SetupResponse_IEs_tags_177)
		/sizeof(asn_DEF_ENDCX2SetupResponse_IEs_tags_177[0]), /* 1 */
	asn_DEF_ENDCX2SetupResponse_IEs_tags_177,	/* Same as above */
	sizeof(asn_DEF_ENDCX2SetupResponse_IEs_tags_177)
		/sizeof(asn_DEF_ENDCX2SetupResponse_IEs_tags_177[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENDCX2SetupResponse_IEs_177,
	3,	/* Elements count */
	&asn_SPC_ENDCX2SetupResponse_IEs_specs_177	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_184[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqAckIEs__value, choice.GlobalENB_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GlobalENB_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GlobalENB-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqAckIEs__value, choice.ServedEUTRAcellsENDCX2ManagementList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedEUTRAcellsENDCX2ManagementList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedEUTRAcellsENDCX2ManagementList"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_184[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* GlobalENB-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* ServedEUTRAcellsENDCX2ManagementList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_184 = {
	sizeof(struct ENB_ENDCX2SetupReqAckIEs__value),
	offsetof(struct ENB_ENDCX2SetupReqAckIEs__value, _asn_ctx),
	offsetof(struct ENB_ENDCX2SetupReqAckIEs__value, present),
	sizeof(((struct ENB_ENDCX2SetupReqAckIEs__value *)0)->present),
	asn_MAP_value_tag2el_184,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_184 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_184,
	2,	/* Elements count */
	&asn_SPC_value_specs_184	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENB_ENDCX2SetupReqAckIEs_181[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqAckIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_182,  memb_id_constraint_181 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqAckIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENB_ENDCX2SetupReqAckIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_183,  memb_criticality_constraint_181 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCX2SetupReqAckIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_184,
		select_ENB_ENDCX2SetupReqAckIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_184,  memb_value_constraint_181 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENB_ENDCX2SetupReqAckIEs_tags_181[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENB_ENDCX2SetupReqAckIEs_tag2el_181[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENB_ENDCX2SetupReqAckIEs_specs_181 = {
	sizeof(struct ENB_ENDCX2SetupReqAckIEs),
	offsetof(struct ENB_ENDCX2SetupReqAckIEs, _asn_ctx),
	asn_MAP_ENB_ENDCX2SetupReqAckIEs_tag2el_181,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENB_ENDCX2SetupReqAckIEs = {
	"ENB-ENDCX2SetupReqAckIEs",
	"ENB-ENDCX2SetupReqAckIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENB_ENDCX2SetupReqAckIEs_tags_181,
	sizeof(asn_DEF_ENB_ENDCX2SetupReqAckIEs_tags_181)
		/sizeof(asn_DEF_ENB_ENDCX2SetupReqAckIEs_tags_181[0]), /* 1 */
	asn_DEF_ENB_ENDCX2SetupReqAckIEs_tags_181,	/* Same as above */
	sizeof(asn_DEF_ENB_ENDCX2SetupReqAckIEs_tags_181)
		/sizeof(asn_DEF_ENB_ENDCX2SetupReqAckIEs_tags_181[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENB_ENDCX2SetupReqAckIEs_181,
	3,	/* Elements count */
	&asn_SPC_ENB_ENDCX2SetupReqAckIEs_specs_181	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_188[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqAckIEs__value, choice.GlobalGNB_ID),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_GlobalGNB_ID,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GlobalGNB-ID"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqAckIEs__value, choice.ServedNRcellsENDCX2ManagementList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedNRcellsENDCX2ManagementList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedNRcellsENDCX2ManagementList"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_188[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* GlobalGNB-ID */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* ServedNRcellsENDCX2ManagementList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_188 = {
	sizeof(struct En_gNB_ENDCX2SetupReqAckIEs__value),
	offsetof(struct En_gNB_ENDCX2SetupReqAckIEs__value, _asn_ctx),
	offsetof(struct En_gNB_ENDCX2SetupReqAckIEs__value, present),
	sizeof(((struct En_gNB_ENDCX2SetupReqAckIEs__value *)0)->present),
	asn_MAP_value_tag2el_188,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_188 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_188,
	2,	/* Elements count */
	&asn_SPC_value_specs_188	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_En_gNB_ENDCX2SetupReqAckIEs_185[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqAckIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_186,  memb_id_constraint_185 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqAckIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_En_gNB_ENDCX2SetupReqAckIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_187,  memb_criticality_constraint_185 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCX2SetupReqAckIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_188,
		select_En_gNB_ENDCX2SetupReqAckIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_188,  memb_value_constraint_185 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_En_gNB_ENDCX2SetupReqAckIEs_tags_185[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_En_gNB_ENDCX2SetupReqAckIEs_tag2el_185[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_En_gNB_ENDCX2SetupReqAckIEs_specs_185 = {
	sizeof(struct En_gNB_ENDCX2SetupReqAckIEs),
	offsetof(struct En_gNB_ENDCX2SetupReqAckIEs, _asn_ctx),
	asn_MAP_En_gNB_ENDCX2SetupReqAckIEs_tag2el_185,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_En_gNB_ENDCX2SetupReqAckIEs = {
	"En-gNB-ENDCX2SetupReqAckIEs",
	"En-gNB-ENDCX2SetupReqAckIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_En_gNB_ENDCX2SetupReqAckIEs_tags_185,
	sizeof(asn_DEF_En_gNB_ENDCX2SetupReqAckIEs_tags_185)
		/sizeof(asn_DEF_En_gNB_ENDCX2SetupReqAckIEs_tags_185[0]), /* 1 */
	asn_DEF_En_gNB_ENDCX2SetupReqAckIEs_tags_185,	/* Same as above */
	sizeof(asn_DEF_En_gNB_ENDCX2SetupReqAckIEs_tags_185)
		/sizeof(asn_DEF_En_gNB_ENDCX2SetupReqAckIEs_tags_185[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_En_gNB_ENDCX2SetupReqAckIEs_185,
	3,	/* Elements count */
	&asn_SPC_En_gNB_ENDCX2SetupReqAckIEs_specs_185	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_192[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupFailure_IEs__value, choice.Cause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_Cause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Cause"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupFailure_IEs__value, choice.TimeToWait),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_TimeToWait,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"TimeToWait"
		},
};
static const unsigned asn_MAP_value_to_canonical_192[] = { 2, 1, 0 };
static const unsigned asn_MAP_value_from_canonical_192[] = { 2, 1, 0 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_192[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 }, /* TimeToWait */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 } /* misc */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_192 = {
	sizeof(struct ENDCX2SetupFailure_IEs__value),
	offsetof(struct ENDCX2SetupFailure_IEs__value, _asn_ctx),
	offsetof(struct ENDCX2SetupFailure_IEs__value, present),
	sizeof(((struct ENDCX2SetupFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_192,
	6,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_192,
	asn_MAP_value_from_canonical_192,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_192 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_192,
	3,	/* Elements count */
	&asn_SPC_value_specs_192	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENDCX2SetupFailure_IEs_189[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_190,  memb_id_constraint_189 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENDCX2SetupFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_191,  memb_criticality_constraint_189 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENDCX2SetupFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_192,
		select_ENDCX2SetupFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_192,  memb_value_constraint_189 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENDCX2SetupFailure_IEs_tags_189[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENDCX2SetupFailure_IEs_tag2el_189[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENDCX2SetupFailure_IEs_specs_189 = {
	sizeof(struct ENDCX2SetupFailure_IEs),
	offsetof(struct ENDCX2SetupFailure_IEs, _asn_ctx),
	asn_MAP_ENDCX2SetupFailure_IEs_tag2el_189,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENDCX2SetupFailure_IEs = {
	"ENDCX2SetupFailure-IEs",
	"ENDCX2SetupFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENDCX2SetupFailure_IEs_tags_189,
	sizeof(asn_DEF_ENDCX2SetupFailure_IEs_tags_189)
		/sizeof(asn_DEF_ENDCX2SetupFailure_IEs_tags_189[0]), /* 1 */
	asn_DEF_ENDCX2SetupFailure_IEs_tags_189,	/* Same as above */
	sizeof(asn_DEF_ENDCX2SetupFailure_IEs_tags_189)
		/sizeof(asn_DEF_ENDCX2SetupFailure_IEs_tags_189[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENDCX2SetupFailure_IEs_189,
	3,	/* Elements count */
	&asn_SPC_ENDCX2SetupFailure_IEs_specs_189	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_196[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdate_IEs__value, choice.InitiatingNodeType_EndcConfigUpdate),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_InitiatingNodeType_EndcConfigUpdate,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"InitiatingNodeType-EndcConfigUpdate"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_196[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* init-eNB */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 } /* init-en-gNB */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_196 = {
	sizeof(struct ENDCConfigurationUpdate_IEs__value),
	offsetof(struct ENDCConfigurationUpdate_IEs__value, _asn_ctx),
	offsetof(struct ENDCConfigurationUpdate_IEs__value, present),
	sizeof(((struct ENDCConfigurationUpdate_IEs__value *)0)->present),
	asn_MAP_value_tag2el_196,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_196 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_196,
	1,	/* Elements count */
	&asn_SPC_value_specs_196	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENDCConfigurationUpdate_IEs_193[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdate_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_194,  memb_id_constraint_193 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdate_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENDCConfigurationUpdate_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_195,  memb_criticality_constraint_193 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdate_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_196,
		select_ENDCConfigurationUpdate_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_196,  memb_value_constraint_193 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENDCConfigurationUpdate_IEs_tags_193[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENDCConfigurationUpdate_IEs_tag2el_193[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENDCConfigurationUpdate_IEs_specs_193 = {
	sizeof(struct ENDCConfigurationUpdate_IEs),
	offsetof(struct ENDCConfigurationUpdate_IEs, _asn_ctx),
	asn_MAP_ENDCConfigurationUpdate_IEs_tag2el_193,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENDCConfigurationUpdate_IEs = {
	"ENDCConfigurationUpdate-IEs",
	"ENDCConfigurationUpdate-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENDCConfigurationUpdate_IEs_tags_193,
	sizeof(asn_DEF_ENDCConfigurationUpdate_IEs_tags_193)
		/sizeof(asn_DEF_ENDCConfigurationUpdate_IEs_tags_193[0]), /* 1 */
	asn_DEF_ENDCConfigurationUpdate_IEs_tags_193,	/* Same as above */
	sizeof(asn_DEF_ENDCConfigurationUpdate_IEs_tags_193)
		/sizeof(asn_DEF_ENDCConfigurationUpdate_IEs_tags_193[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENDCConfigurationUpdate_IEs_193,
	3,	/* Elements count */
	&asn_SPC_ENDCConfigurationUpdate_IEs_specs_193	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_200[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateIEs__value, choice.CellAssistanceInformation),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_CellAssistanceInformation,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CellAssistanceInformation"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateIEs__value, choice.ServedEUTRAcellsENDCX2ManagementList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedEUTRAcellsENDCX2ManagementList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedEUTRAcellsENDCX2ManagementList"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateIEs__value, choice.ServedEUTRAcellsToModifyListENDCConfUpd),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedEUTRAcellsToModifyListENDCConfUpd,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedEUTRAcellsToModifyListENDCConfUpd"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateIEs__value, choice.ServedEUTRAcellsToDeleteListENDCConfUpd),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedEUTRAcellsToDeleteListENDCConfUpd,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedEUTRAcellsToDeleteListENDCConfUpd"
		},
};
static const unsigned asn_MAP_value_to_canonical_200[] = { 1, 2, 3, 0 };
static const unsigned asn_MAP_value_from_canonical_200[] = { 3, 0, 1, 2 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_200[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 2 }, /* ServedEUTRAcellsENDCX2ManagementList */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 1 }, /* ServedEUTRAcellsToModifyListENDCConfUpd */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -2, 0 }, /* ServedEUTRAcellsToDeleteListENDCConfUpd */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* limited-list */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 } /* full-list */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_200 = {
	sizeof(struct ENB_ENDCConfigUpdateIEs__value),
	offsetof(struct ENB_ENDCConfigUpdateIEs__value, _asn_ctx),
	offsetof(struct ENB_ENDCConfigUpdateIEs__value, present),
	sizeof(((struct ENB_ENDCConfigUpdateIEs__value *)0)->present),
	asn_MAP_value_tag2el_200,
	5,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_200,
	asn_MAP_value_from_canonical_200,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_200 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_200,
	4,	/* Elements count */
	&asn_SPC_value_specs_200	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENB_ENDCConfigUpdateIEs_197[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_198,  memb_id_constraint_197 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENB_ENDCConfigUpdateIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_199,  memb_criticality_constraint_197 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_200,
		select_ENB_ENDCConfigUpdateIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_200,  memb_value_constraint_197 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENB_ENDCConfigUpdateIEs_tags_197[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENB_ENDCConfigUpdateIEs_tag2el_197[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENB_ENDCConfigUpdateIEs_specs_197 = {
	sizeof(struct ENB_ENDCConfigUpdateIEs),
	offsetof(struct ENB_ENDCConfigUpdateIEs, _asn_ctx),
	asn_MAP_ENB_ENDCConfigUpdateIEs_tag2el_197,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENB_ENDCConfigUpdateIEs = {
	"ENB-ENDCConfigUpdateIEs",
	"ENB-ENDCConfigUpdateIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENB_ENDCConfigUpdateIEs_tags_197,
	sizeof(asn_DEF_ENB_ENDCConfigUpdateIEs_tags_197)
		/sizeof(asn_DEF_ENB_ENDCConfigUpdateIEs_tags_197[0]), /* 1 */
	asn_DEF_ENB_ENDCConfigUpdateIEs_tags_197,	/* Same as above */
	sizeof(asn_DEF_ENB_ENDCConfigUpdateIEs_tags_197)
		/sizeof(asn_DEF_ENB_ENDCConfigUpdateIEs_tags_197[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENB_ENDCConfigUpdateIEs_197,
	3,	/* Elements count */
	&asn_SPC_ENB_ENDCConfigUpdateIEs_specs_197	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_204[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateIEs__value, choice.ServedNRcellsENDCX2ManagementList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedNRcellsENDCX2ManagementList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedNRcellsENDCX2ManagementList"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateIEs__value, choice.ServedNRcellsToModifyENDCConfUpdList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedNRcellsToModifyENDCConfUpdList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedNRcellsToModifyENDCConfUpdList"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateIEs__value, choice.ServedNRcellsToDeleteENDCConfUpdList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedNRcellsToDeleteENDCConfUpdList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedNRcellsToDeleteENDCConfUpdList"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_204[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 2 }, /* ServedNRcellsENDCX2ManagementList */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 1 }, /* ServedNRcellsToModifyENDCConfUpdList */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 0 } /* ServedNRcellsToDeleteENDCConfUpdList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_204 = {
	sizeof(struct En_gNB_ENDCConfigUpdateIEs__value),
	offsetof(struct En_gNB_ENDCConfigUpdateIEs__value, _asn_ctx),
	offsetof(struct En_gNB_ENDCConfigUpdateIEs__value, present),
	sizeof(((struct En_gNB_ENDCConfigUpdateIEs__value *)0)->present),
	asn_MAP_value_tag2el_204,
	3,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_204 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_204,
	3,	/* Elements count */
	&asn_SPC_value_specs_204	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_En_gNB_ENDCConfigUpdateIEs_201[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_202,  memb_id_constraint_201 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_En_gNB_ENDCConfigUpdateIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_203,  memb_criticality_constraint_201 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_204,
		select_En_gNB_ENDCConfigUpdateIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_204,  memb_value_constraint_201 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_En_gNB_ENDCConfigUpdateIEs_tags_201[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_En_gNB_ENDCConfigUpdateIEs_tag2el_201[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_En_gNB_ENDCConfigUpdateIEs_specs_201 = {
	sizeof(struct En_gNB_ENDCConfigUpdateIEs),
	offsetof(struct En_gNB_ENDCConfigUpdateIEs, _asn_ctx),
	asn_MAP_En_gNB_ENDCConfigUpdateIEs_tag2el_201,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_En_gNB_ENDCConfigUpdateIEs = {
	"En-gNB-ENDCConfigUpdateIEs",
	"En-gNB-ENDCConfigUpdateIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_En_gNB_ENDCConfigUpdateIEs_tags_201,
	sizeof(asn_DEF_En_gNB_ENDCConfigUpdateIEs_tags_201)
		/sizeof(asn_DEF_En_gNB_ENDCConfigUpdateIEs_tags_201[0]), /* 1 */
	asn_DEF_En_gNB_ENDCConfigUpdateIEs_tags_201,	/* Same as above */
	sizeof(asn_DEF_En_gNB_ENDCConfigUpdateIEs_tags_201)
		/sizeof(asn_DEF_En_gNB_ENDCConfigUpdateIEs_tags_201[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_En_gNB_ENDCConfigUpdateIEs_201,
	3,	/* Elements count */
	&asn_SPC_En_gNB_ENDCConfigUpdateIEs_specs_201	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_208[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs__value, choice.RespondingNodeType_EndcConfigUpdate),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_RespondingNodeType_EndcConfigUpdate,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"RespondingNodeType-EndcConfigUpdate"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_208[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* respond-eNB */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 } /* respond-en-gNB */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_208 = {
	sizeof(struct ENDCConfigurationUpdateAcknowledge_IEs__value),
	offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs__value, _asn_ctx),
	offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs__value, present),
	sizeof(((struct ENDCConfigurationUpdateAcknowledge_IEs__value *)0)->present),
	asn_MAP_value_tag2el_208,
	2,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_208 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_208,
	1,	/* Elements count */
	&asn_SPC_value_specs_208	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENDCConfigurationUpdateAcknowledge_IEs_205[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_206,  memb_id_constraint_205 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENDCConfigurationUpdateAcknowledge_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_207,  memb_criticality_constraint_205 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_208,
		select_ENDCConfigurationUpdateAcknowledge_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_208,  memb_value_constraint_205 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs_tags_205[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENDCConfigurationUpdateAcknowledge_IEs_tag2el_205[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENDCConfigurationUpdateAcknowledge_IEs_specs_205 = {
	sizeof(struct ENDCConfigurationUpdateAcknowledge_IEs),
	offsetof(struct ENDCConfigurationUpdateAcknowledge_IEs, _asn_ctx),
	asn_MAP_ENDCConfigurationUpdateAcknowledge_IEs_tag2el_205,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs = {
	"ENDCConfigurationUpdateAcknowledge-IEs",
	"ENDCConfigurationUpdateAcknowledge-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs_tags_205,
	sizeof(asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs_tags_205)
		/sizeof(asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs_tags_205[0]), /* 1 */
	asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs_tags_205,	/* Same as above */
	sizeof(asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs_tags_205)
		/sizeof(asn_DEF_ENDCConfigurationUpdateAcknowledge_IEs_tags_205[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENDCConfigurationUpdateAcknowledge_IEs_205,
	3,	/* Elements count */
	&asn_SPC_ENDCConfigurationUpdateAcknowledge_IEs_specs_205	/* Additional specs */
};

static asn_CHOICE_specifics_t asn_SPC_value_specs_212 = {
	sizeof(struct ENB_ENDCConfigUpdateAckIEs__value),
	offsetof(struct ENB_ENDCConfigUpdateAckIEs__value, _asn_ctx),
	offsetof(struct ENB_ENDCConfigUpdateAckIEs__value, present),
	sizeof(((struct ENB_ENDCConfigUpdateAckIEs__value *)0)->present),
	0,	/* No top level tags */
	0,	/* No tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_212 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	0, 0,	/* No members */
	&asn_SPC_value_specs_212	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENB_ENDCConfigUpdateAckIEs_209[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateAckIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_210,  memb_id_constraint_209 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateAckIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		0,
		{ 0, &asn_PER_memb_criticality_constr_211,  memb_criticality_constraint_209 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENB_ENDCConfigUpdateAckIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_212,
		0,
		{ 0, &asn_PER_memb_value_constr_212,  memb_value_constraint_209 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENB_ENDCConfigUpdateAckIEs_tags_209[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENB_ENDCConfigUpdateAckIEs_tag2el_209[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENB_ENDCConfigUpdateAckIEs_specs_209 = {
	sizeof(struct ENB_ENDCConfigUpdateAckIEs),
	offsetof(struct ENB_ENDCConfigUpdateAckIEs, _asn_ctx),
	asn_MAP_ENB_ENDCConfigUpdateAckIEs_tag2el_209,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENB_ENDCConfigUpdateAckIEs = {
	"ENB-ENDCConfigUpdateAckIEs",
	"ENB-ENDCConfigUpdateAckIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENB_ENDCConfigUpdateAckIEs_tags_209,
	sizeof(asn_DEF_ENB_ENDCConfigUpdateAckIEs_tags_209)
		/sizeof(asn_DEF_ENB_ENDCConfigUpdateAckIEs_tags_209[0]), /* 1 */
	asn_DEF_ENB_ENDCConfigUpdateAckIEs_tags_209,	/* Same as above */
	sizeof(asn_DEF_ENB_ENDCConfigUpdateAckIEs_tags_209)
		/sizeof(asn_DEF_ENB_ENDCConfigUpdateAckIEs_tags_209[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENB_ENDCConfigUpdateAckIEs_209,
	3,	/* Elements count */
	&asn_SPC_ENB_ENDCConfigUpdateAckIEs_specs_209	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_216[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateAckIEs__value, choice.ServedNRcellsENDCX2ManagementList),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_ServedNRcellsENDCX2ManagementList,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"ServedNRcellsENDCX2ManagementList"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_216[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* ServedNRcellsENDCX2ManagementList */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_216 = {
	sizeof(struct En_gNB_ENDCConfigUpdateAckIEs__value),
	offsetof(struct En_gNB_ENDCConfigUpdateAckIEs__value, _asn_ctx),
	offsetof(struct En_gNB_ENDCConfigUpdateAckIEs__value, present),
	sizeof(((struct En_gNB_ENDCConfigUpdateAckIEs__value *)0)->present),
	asn_MAP_value_tag2el_216,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_216 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_216,
	1,	/* Elements count */
	&asn_SPC_value_specs_216	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_En_gNB_ENDCConfigUpdateAckIEs_213[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateAckIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_214,  memb_id_constraint_213 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateAckIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_En_gNB_ENDCConfigUpdateAckIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_215,  memb_criticality_constraint_213 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct En_gNB_ENDCConfigUpdateAckIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_216,
		select_En_gNB_ENDCConfigUpdateAckIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_216,  memb_value_constraint_213 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_En_gNB_ENDCConfigUpdateAckIEs_tags_213[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_En_gNB_ENDCConfigUpdateAckIEs_tag2el_213[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_En_gNB_ENDCConfigUpdateAckIEs_specs_213 = {
	sizeof(struct En_gNB_ENDCConfigUpdateAckIEs),
	offsetof(struct En_gNB_ENDCConfigUpdateAckIEs, _asn_ctx),
	asn_MAP_En_gNB_ENDCConfigUpdateAckIEs_tag2el_213,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_En_gNB_ENDCConfigUpdateAckIEs = {
	"En-gNB-ENDCConfigUpdateAckIEs",
	"En-gNB-ENDCConfigUpdateAckIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_En_gNB_ENDCConfigUpdateAckIEs_tags_213,
	sizeof(asn_DEF_En_gNB_ENDCConfigUpdateAckIEs_tags_213)
		/sizeof(asn_DEF_En_gNB_ENDCConfigUpdateAckIEs_tags_213[0]), /* 1 */
	asn_DEF_En_gNB_ENDCConfigUpdateAckIEs_tags_213,	/* Same as above */
	sizeof(asn_DEF_En_gNB_ENDCConfigUpdateAckIEs_tags_213)
		/sizeof(asn_DEF_En_gNB_ENDCConfigUpdateAckIEs_tags_213[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_En_gNB_ENDCConfigUpdateAckIEs_213,
	3,	/* Elements count */
	&asn_SPC_En_gNB_ENDCConfigUpdateAckIEs_specs_213	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_220[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateFailure_IEs__value, choice.Cause),
		-1 /* Ambiguous tag (CHOICE?) */,
		0,
		&asn_DEF_Cause,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"Cause"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateFailure_IEs__value, choice.CriticalityDiagnostics),
		(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		0,
		&asn_DEF_CriticalityDiagnostics,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"CriticalityDiagnostics"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateFailure_IEs__value, choice.TimeToWait),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_TimeToWait,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"TimeToWait"
		},
};
static const unsigned asn_MAP_value_to_canonical_220[] = { 2, 1, 0 };
static const unsigned asn_MAP_value_from_canonical_220[] = { 2, 1, 0 };
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_220[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 2, 0, 0 }, /* TimeToWait */
    { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* CriticalityDiagnostics */
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* transport */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, 0, 0 }, /* protocol */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, 0, 0 } /* misc */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_220 = {
	sizeof(struct ENDCConfigurationUpdateFailure_IEs__value),
	offsetof(struct ENDCConfigurationUpdateFailure_IEs__value, _asn_ctx),
	offsetof(struct ENDCConfigurationUpdateFailure_IEs__value, present),
	sizeof(((struct ENDCConfigurationUpdateFailure_IEs__value *)0)->present),
	asn_MAP_value_tag2el_220,
	6,	/* Count of tags in the map */
	asn_MAP_value_to_canonical_220,
	asn_MAP_value_from_canonical_220,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_220 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_220,
	3,	/* Elements count */
	&asn_SPC_value_specs_220	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_ENDCConfigurationUpdateFailure_IEs_217[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateFailure_IEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_218,  memb_id_constraint_217 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateFailure_IEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_ENDCConfigurationUpdateFailure_IEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_219,  memb_criticality_constraint_217 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct ENDCConfigurationUpdateFailure_IEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_220,
		select_ENDCConfigurationUpdateFailure_IEs_value_type,
		{ 0, &asn_PER_memb_value_constr_220,  memb_value_constraint_217 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_ENDCConfigurationUpdateFailure_IEs_tags_217[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_ENDCConfigurationUpdateFailure_IEs_tag2el_217[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_ENDCConfigurationUpdateFailure_IEs_specs_217 = {
	sizeof(struct ENDCConfigurationUpdateFailure_IEs),
	offsetof(struct ENDCConfigurationUpdateFailure_IEs, _asn_ctx),
	asn_MAP_ENDCConfigurationUpdateFailure_IEs_tag2el_217,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_ENDCConfigurationUpdateFailure_IEs = {
	"ENDCConfigurationUpdateFailure-IEs",
	"ENDCConfigurationUpdateFailure-IEs",
	&asn_OP_SEQUENCE,
	asn_DEF_ENDCConfigurationUpdateFailure_IEs_tags_217,
	sizeof(asn_DEF_ENDCConfigurationUpdateFailure_IEs_tags_217)
		/sizeof(asn_DEF_ENDCConfigurationUpdateFailure_IEs_tags_217[0]), /* 1 */
	asn_DEF_ENDCConfigurationUpdateFailure_IEs_tags_217,	/* Same as above */
	sizeof(asn_DEF_ENDCConfigurationUpdateFailure_IEs_tags_217)
		/sizeof(asn_DEF_ENDCConfigurationUpdateFailure_IEs_tags_217[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_ENDCConfigurationUpdateFailure_IEs_217,
	3,	/* Elements count */
	&asn_SPC_ENDCConfigurationUpdateFailure_IEs_specs_217	/* Additional specs */
};

static asn_TYPE_member_t asn_MBR_value_224[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct GNBStatusIndicationIEs__value, choice.GNBOverloadInformation),
		(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
		0,
		&asn_DEF_GNBOverloadInformation,
		0,
		{ 0, 0, 0 },
		0, 0, /* No default value */
		"GNBOverloadInformation"
		},
};
static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_224[] = {
    { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 } /* GNBOverloadInformation */
};
static asn_CHOICE_specifics_t asn_SPC_value_specs_224 = {
	sizeof(struct GNBStatusIndicationIEs__value),
	offsetof(struct GNBStatusIndicationIEs__value, _asn_ctx),
	offsetof(struct GNBStatusIndicationIEs__value, present),
	sizeof(((struct GNBStatusIndicationIEs__value *)0)->present),
	asn_MAP_value_tag2el_224,
	1,	/* Count of tags in the map */
	0, 0,
	-1	/* Extensions start */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_value_224 = {
	"value",
	"value",
	&asn_OP_OPEN_TYPE,
	0,	/* No effective tags (pointer) */
	0,	/* No effective tags (count) */
	0,	/* No tags (pointer) */
	0,	/* No tags (count) */
	{ 0, 0, OPEN_TYPE_constraint },
	asn_MBR_value_224,
	1,	/* Elements count */
	&asn_SPC_value_specs_224	/* Additional specs */
};

asn_TYPE_member_t asn_MBR_GNBStatusIndicationIEs_221[] = {
	{ ATF_NOFLAGS, 0, offsetof(struct GNBStatusIndicationIEs, id),
		(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_ProtocolIE_ID,
		0,
		{ 0, &asn_PER_memb_id_constr_222,  memb_id_constraint_221 },
		0, 0, /* No default value */
		"id"
		},
	{ ATF_NOFLAGS, 0, offsetof(struct GNBStatusIndicationIEs, criticality),
		(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		-1,	/* IMPLICIT tag at current level */
		&asn_DEF_Criticality,
		select_GNBStatusIndicationIEs_criticality_type,
		{ 0, &asn_PER_memb_criticality_constr_223,  memb_criticality_constraint_221 },
		0, 0, /* No default value */
		"criticality"
		},
	{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct GNBStatusIndicationIEs, value),
		(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		+1,	/* EXPLICIT tag at current level */
		&asn_DEF_value_224,
		select_GNBStatusIndicationIEs_value_type,
		{ 0, &asn_PER_memb_value_constr_224,  memb_value_constraint_221 },
		0, 0, /* No default value */
		"value"
		},
};
static const ber_tlv_tag_t asn_DEF_GNBStatusIndicationIEs_tags_221[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_GNBStatusIndicationIEs_tag2el_221[] = {
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
};
asn_SEQUENCE_specifics_t asn_SPC_GNBStatusIndicationIEs_specs_221 = {
	sizeof(struct GNBStatusIndicationIEs),
	offsetof(struct GNBStatusIndicationIEs, _asn_ctx),
	asn_MAP_GNBStatusIndicationIEs_tag2el_221,
	3,	/* Count of tags in the map */
	0, 0, 0,	/* Optional elements (not needed) */
	-1,	/* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_GNBStatusIndicationIEs = {
	"GNBStatusIndicationIEs",
	"GNBStatusIndicationIEs",
	&asn_OP_SEQUENCE,
	asn_DEF_GNBStatusIndicationIEs_tags_221,
	sizeof(asn_DEF_GNBStatusIndicationIEs_tags_221)
		/sizeof(asn_DEF_GNBStatusIndicationIEs_tags_221[0]), /* 1 */
	asn_DEF_GNBStatusIndicationIEs_tags_221,	/* Same as above */
	sizeof(asn_DEF_GNBStatusIndicationIEs_tags_221)
		/sizeof(asn_DEF_GNBStatusIndicationIEs_tags_221[0]), /* 1 */
	{ 0, 0, SEQUENCE_constraint },
	asn_MBR_GNBStatusIndicationIEs_221,
	3,	/* Elements count */
	&asn_SPC_GNBStatusIndicationIEs_specs_221	/* Additional specs */
};

