static void seek_to_maindata(MPADecodeContext *s, long backstep)

{

    UINT8 *ptr;



    /* compute current position in stream */

    ptr = s->gb.buffer + (get_bits_count(&s->gb)>>3);



    /* copy old data before current one */

    ptr -= backstep;

    memcpy(ptr, s->inbuf1[s->inbuf_index ^ 1] + 

           BACKSTEP_SIZE + s->old_frame_size - backstep, backstep);

    /* init get bits again */

    init_get_bits(&s->gb, ptr, s->frame_size + backstep);



    /* prepare next buffer */

    s->inbuf_index ^= 1;

    s->inbuf = &s->inbuf1[s->inbuf_index][BACKSTEP_SIZE];

    s->old_frame_size = s->frame_size;

}

static void seek_to_maindata(MPADecodeContext *s, long backstep)

{

    UINT8 *ptr;



    

    ptr = s->gb.buffer + (get_bits_count(&s->gb)>>3);



    

    ptr -= backstep;

    memcpy(ptr, s->inbuf1[s->inbuf_index ^ 1] + 

           BACKSTEP_SIZE + s->old_frame_size - backstep, backstep);

    

    init_get_bits(&s->gb, ptr, s->frame_size + backstep);



    

    s->inbuf_index ^= 1;

    s->inbuf = &s->inbuf1[s->inbuf_index][BACKSTEP_SIZE];

    s->old_frame_size = s->frame_size;

}

static void FUNC_0(MPADecodeContext *VAR_0, long VAR_1)

{

    UINT8 *ptr;



    

    ptr = VAR_0->gb.buffer + (get_bits_count(&VAR_0->gb)>>3);



    

    ptr -= VAR_1;

    memcpy(ptr, VAR_0->inbuf1[VAR_0->inbuf_index ^ 1] + 

           BACKSTEP_SIZE + VAR_0->old_frame_size - VAR_1, VAR_1);

    

    init_get_bits(&VAR_0->gb, ptr, VAR_0->frame_size + VAR_1);



    

    VAR_0->inbuf_index ^= 1;

    VAR_0->inbuf = &VAR_0->inbuf1[VAR_0->inbuf_index][BACKSTEP_SIZE];

    VAR_0->old_frame_size = VAR_0->frame_size;

}

static void FUNC_0(MPADecodeContext *VAR_0, long VAR_1)
{ UINT8 *ptr; ptr = VAR_0->gb.buffer + (get_bits_count(&VAR_0->gb)>>3); ptr -= VAR_1; memcpy(ptr, VAR_0->inbuf1[VAR_0->inbuf_index ^ 1] +
BACKSTEP_SIZE + VAR_0->old_frame_size - VAR_1, VAR_1); init_get_bits(&VAR_0->gb, ptr, VAR_0->frame_size + VAR_1); VAR_0->inbuf_index ^= 1; VAR_0->inbuf = &VAR_0->inbuf1[VAR_0->inbuf_index][BACKSTEP_SIZE]; VAR_0->old_frame_size = VAR_0->frame_size; }