                  if (bfi == 0)                 {                     d_gain_code(                         &(st->pred_state),                         mode,                         index,                         code,                         &gain_code,                         pOverflow);                 }                 else                 {                     ec_gain_code(                         &(st->ec_gain_c_st),                         &(st->pred_state),                         st->state,                         &gain_code,                         pOverflow);                 }                  ec_gain_code_update(                     &(st->ec_gain_c_st),                     bfi,                     st->prev_bf,                     &gain_code,                     pOverflow);                  pit_sharp = gain_pit;                  if (pit_sharp > SHARPMAX)             