static int read_block(ALSDecContext *ctx, ALSBlockData *bd)

{

    GetBitContext *gb        = &ctx->gb;



    *bd->shift_lsbs = 0;

    // read block type flag and read the samples accordingly

    if (get_bits1(gb)) {

        if (read_var_block_data(ctx, bd))

            return -1;

    } else {

        read_const_block_data(ctx, bd);

    }



    return 0;

}

static int read_block(ALSDecContext *ctx, ALSBlockData *bd)

{

    GetBitContext *gb        = &ctx->gb;



    *bd->shift_lsbs = 0;

    

    if (get_bits1(gb)) {

        if (read_var_block_data(ctx, bd))

            return -1;

    } else {

        read_const_block_data(ctx, bd);

    }



    return 0;

}

            return -1;             return -1;         if (read_var_block_data(ctx, bd))             return -1;     return 0;             return -1;             return -1;             return -1;
static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)

{

    GetBitContext *gb        = &VAR_0->gb;



    *VAR_1->shift_lsbs = 0;

    

    if (get_bits1(gb)) {

        if (read_var_block_data(VAR_0, VAR_1))

            return -1;

    } else {

        read_const_block_data(VAR_0, VAR_1);

    }



    return 0;

}

static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)
{ GetBitContext *gb        = &VAR_0->gb; *VAR_1->shift_lsbs = 0; if (get_bits1(gb)) { if (read_var_block_data(VAR_0, VAR_1))
return -1; } else { read_const_block_data(VAR_0, VAR_1); } return 0; }