static int get_packetheader(NUTContext *nut, ByteIOContext *bc, int calculate_checksum)

{

    int64_t start, size;

    start= url_ftell(bc) - 8;



    init_checksum(bc, calculate_checksum ? update_adler32 : NULL, 0);



    size= get_v(bc);



    nut->packet_start[2] = start;

    nut->written_packet_size= size;



    return size;

}

static int get_packetheader(NUTContext *nut, ByteIOContext *bc, int calculate_checksum)

{

    int64_t start, size;

    start= url_ftell(bc) - 8;



    init_checksum(bc, calculate_checksum ? update_adler32 : NULL, 0);



    size= get_v(bc);



    nut->packet_start[2] = start;

    nut->written_packet_size= size;



    return size;

}

static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2)

{

    int64_t start, size;

    start= url_ftell(VAR_1) - 8;



    init_checksum(VAR_1, VAR_2 ? update_adler32 : NULL, 0);



    size= get_v(VAR_1);



    VAR_0->packet_start[2] = start;

    VAR_0->written_packet_size= size;



    return size;

}

static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2)
{ int64_t start, size; start= url_ftell(VAR_1) - 8; init_checksum(VAR_1, VAR_2 ? update_adler32 : NULL, 0); size= get_v(VAR_1); VAR_0->packet_start[2] = start; VAR_0->written_packet_size= size; return size; }