g_assert(msg != NULL);

    if (queueId == SLMSG_UNSPECIFIED) {
       
        _slmsg_instrument_drop(msg, SLMSG_UNSPECIFIED, NULL);
        return msg;
    }

    q = msgMgr->fQueues[queueId];

    if (msg->fQueueId != SLMSG_UNSPECIFIED){
       
        __slmsg_assert(msg->fQueueId == msgMgr->_scratchQueue);
        _slMsgRemoveFromQueue(msgMgr, msg);
    }
    else {
        __slmsg_assert(msg->fDataSize == q->fDataSize);
    }

    if (q->_fInstrumentSendObj != NULL) {
        _slmsg_instrument_send(msg, queueId, q->_fInstrumentSendObj);
        q->_fInstrumentSendObj = NULL;
    }

    return _slMsgAddToQueue(msgMgr, msg, queueId);
}

slMessage *_slMsgSvcSRSWSendMsg(slMsgManager *msgMgr, slMessage *msg, slMsgQueueId queueId){
    slMsgQueue *q;

    __slmsg_assert(msg != NULL);

    if (queueId == SLMSG_UNSPECIFIED) {
       
        _slmsg_instrument_drop(msg, SLMSG_UNSPECIFIED, NULL);
        return msg;
    }

    q = msgMgr->fQueues[queueId];

    __slmsg_assert(msg->fDataSize == q->fDataSize);

   # has variables side1Label (low, high), side2Label (high, low),
#               pitchOffsetLabel1 (_p, ''), pitchOffsetLabel2 ('', _p)

38
       0    0 0 0               node_periodic_point  14       { in_leb1_proj[pitchOffsetLabel1]_pnt }
       1    0 0 0               node_periodic_curve  15       { in_to_leb1_proj[pitchOffsetLabel1]_crv }
       2    0 0 0               node_periodic_point  16       { leb1_proj[pitchOffsetLabel1]_pnt }
       3    0 0 0               node_curve                    { in_ext_crv }
       4    0 0 0               node_curve                    { leb1_circle[pitchOffsetLabel1]_crv }
       5    0 0 0               node_curve                    { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
       6    0 0 0               node_curve                    { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
       7    0 0 0               node_curve                    { in_ext_crv }
       8    0 0 0
       9    0 0 0               node_curve                    { leb1_circle[pitchOffsetLabel1]_crv }
      10    0 0 0               node_curve                    { le_passage_focal_crv }
      11    0 0 0               node_curve                    { in_ext_crv }
      12    0 0 0
      13    0 0 0               node_curve                    { le_passage_focal_crv }
      14    0 0 0               node_periodic_point 0         { in_leb1_proj[pitchOffsetLabel2]_pnt }
      15    0 0 0               node_periodic_curve 1         { in_to_leb1_proj[pitchOffsetLabel2]_crv }
      16    0 0 0               node_periodic_point 2         { leb1_proj[pitchOffsetLabel2]_pnt }
      17    0 0 0               node_curve                    { [side2Label]_fullb1[pitchOffsetLabel2]_crv }
      18    0 0 0               node_point                    { le_passage_[side1Label]_pnt }
      19    0 0 0               node_point                    { te_passage_[side1Label]_pnt }
      20    0 0 0               node_curve                    { te_passage_focal_crv }
      21    0 0 0               node_curve                    { te_passage_focal_crv }
      22    0 0 0               node_curve                    { te_passage_focal_crv }
      23    0 0 0               node_point                    { te_passage_[side2Label]_pnt }
      24    0 0 0               node_curve                    { leading_closedb1[pitchOffsetLabel1]_crv }
      25    0 0 0               node_curve                    { in_ext_crv }
      26    0 0 0               node_curve                    { leb1_circle[pitchOffsetLabel1]_crv }
      27    0 0 0               node_point                    { nle_passage_[side1Label]_pnt }
      28    0 0 0               node_curve                    { nle_passage_crv }
      29    0 0 0               node_curve                    { nle_passage_crv }
      30    0 0 0               node_curve                    { leb1_circle[pitchOffsetLabel1]_crv }
      31    0 0 0               node_point                    { [side1Label]_b1_by_leb1_circle[pitchOffsetLabel1]_pnt }
      32    0 0 0               node_curve                    { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
      33    0 0 0               node_curve                    { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
      34    0 0 0
      35    0 0 0
      36    0 0 0
      37    0 0 0
62
       0       0       1                    edge_periodic_curve  24        { in_to_leb1_proj[pitchOffsetLabel1]_crv }
       1       1       2                    edge_periodic_curve  25        { in_to_leb1_proj[pitchOffsetLabel1]_crv }
       2       2      24                    edge_curve                     { leading_closedb1[pitchOffsetLabel1]_crv }
       3       5       6                    edge_curve                     { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
       4       0      25                    edge_curve                     { in_ext_crv }
       5      25       3                    edge_curve                     { in_ext_crv }
       6       1      26
       7      26       4
       8       3       4
       9       4       9
      10       3       7                    edge_curve                     { in_ext_crv }
      11       4       8
      12       9      10                    edge_curve                     { le_passage_focal_crv }
      13       7       8
      14       8      10
      15       7      11                    edge_curve                     { in_ext_crv }
      16       8      12
      17      10      13                    edge_curve                     { le_passage_focal_crv }
      18      11      12
      19      12      13
      20      11      14                    edge_curve                     { in_ext_crv }
      21      15      12
      22      12      17
      23      13      18                    edge_curve                     { le_passage_focal_crv }
      24      14      15                    edge_periodic_curve  0         { in_to_leb1_proj[pitchOffsetLabel2]_crv }
      25      15      16                    edge_periodic_curve 1          { in_to_leb1_proj[pitchOffsetLabel2]_crv }
      26      16      17                    edge_curve                     { leading_closedb1[pitchOffsetLabel2]_crv }
      27      17      18                    edge_curve                     { [side2Label]_fullb1[pitchOffsetLabel2]_crv }
      28      18      27                    edge_curve                     { [side2Label]_fullb1[pitchOffsetLabel2]_crv }
      29      13      28
      30      10      29
      31       9      30
      32      20      21                    edge_curve                     { te_passage_focal_crv }
      33      21      22                    edge_curve                     { te_passage_focal_crv }
      34      22      23                    edge_curve                     { te_passage_focal_crv }
      35      25      26
      36      26      24
      37      28      27                    edge_curve                     { nle_passage_crv }
      38      29      28
      39      30      29
      40      31      30                    edge_curve                     { leb1_circle[pitchOffsetLabel1]_crv }
      41      24      32                    edge_curve                     { leading_closedb1[pitchOffsetLabel1]_crv }
      42      32       5                    edge_curve                     { leading_closedb1[pitchOffsetLabel1]_crv }
      43      31      33                    edge_curve                     { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
      44      33       6                    edge_curve                     { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
      45      32      34
      46      26      34
      47       5      35
      48      35      34
      49      35       4
      50       6      36
      51      35      36
      52       9      36
      53      33      37
      54      37      30
      55      37      36
      56      31      23                    edge_curve                      { [side1Label]_fullb1[pitchOffsetLabel1]_crv }
      57      30      22
      58      20      19                  edge_curve                        { te_passage_focal_crv }
      59      29      21
      60      28      20
      61      27      19                   edge_curve                       { [side2Label]_fullb1[pitchOffsetLabel2]_crv }
25
       0       4       0       4      35       6
       1       4       1       2      36       6
       2       4       3      47      51      50
       3       4       5       8       7      35
       4       4       7      46      48      49
       5       4       8      10      13      11
       6       4       9      11      14      12
       7       4       9      49      51      52
       8       4      12      30      39      31
       9       4      13      15      18      16
      10       4      14      16      19      17
      11       4      17      29      38      30
      12       4      18      20      24      21
      13       4      19      22      27      23
      14       4      21      22      26      25
      15       4      23      28      37      29
      16       4      31      52      55      54
      17       4      32      59      38      60
      18       4      33      57      39      59
      19       4      34      56      40      57
      20       4      36      41      45      46
      21       4      37      60      58      61
      22       4      40      43      53      54
      23       4      42      45      48      47
      24       4      44      50      55      53
